new-service: add help
This commit is contained in:
		
							parent
							
								
									c7881ca333
								
							
						
					
					
						commit
						c831090fe9
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		|  | @ -1,7 +1,11 @@ | |||
| #!/bin/zsh | ||||
| 
 | ||||
| zparseopts -D l=logs -log=logs -enable-log=logs i:=importenv -import-env:=importenv | ||||
| zparseopts -D l=logs -log=logs -enable-log=logs i:=importenv -import-env:=importenv h=help -help=help | ||||
| 
 | ||||
| if [[ -z $1 || $help ]]; then | ||||
| 	echo "Usage: $0 [-l|--logs] [-i|--import-env=process] service [parameters]" | ||||
| 	exit 1 | ||||
| fi | ||||
| mkdir $1 | ||||
| ln -s ${XDG_RUNTIME_DIR:-/run/user/$UID}/supervise.$1 $1/supervise | ||||
| { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 crater2150
						crater2150