forked from Spark/ssm-services
		
	Enforcing separation of the command and its args and full command paths
This commit is contained in:
		| @@ -2,7 +2,7 @@ | |||||||
|  |  | ||||||
| #service_respawn='true' | #service_respawn='true' | ||||||
| service_username='torrent' | service_username='torrent' | ||||||
| service_command='sudo' | service_command='/usr/bin/sudo' | ||||||
| service_args="-u $service_username -- /usr/bin/bitflu --config=/etc/bitflu.cfg" | service_args="-u $service_username -- /usr/bin/bitflu --config=/etc/bitflu.cfg" | ||||||
|  |  | ||||||
| start() { | start() { | ||||||
|   | |||||||
| @@ -8,5 +8,5 @@ fi | |||||||
| [[ "$cfg_hostname" ]] || { cfg_hostname='localhost'; } | [[ "$cfg_hostname" ]] || { cfg_hostname='localhost'; } | ||||||
|  |  | ||||||
| service_type='oneshot' | service_type='oneshot' | ||||||
| service_command='hostname' | service_command='/usr/bin/hostname' | ||||||
| service_args="$cfg_hostname" | service_args="$cfg_hostname" | ||||||
|   | |||||||
| @@ -3,7 +3,8 @@ | |||||||
| cfg_iface="${service_name%%.*}" | cfg_iface="${service_name%%.*}" | ||||||
|  |  | ||||||
| service_type='oneshot' | service_type='oneshot' | ||||||
| service_command="ip link set $cfg_iface up" | service_command='/usr/bin/ip' | ||||||
|  | service_args="link set $cfg_iface up" | ||||||
|  |  | ||||||
| wait_for_iface() { | wait_for_iface() { | ||||||
| 	local iface="$1" timer='0' timeout='6' | 	local iface="$1" timer='0' timeout='6' | ||||||
|   | |||||||
| @@ -1,5 +1,5 @@ | |||||||
| #!/usr/bin/env watchman | #!/usr/bin/env watchman | ||||||
|  |  | ||||||
| service_command='mkdir' | service_command='/usr/bin/mkdir' | ||||||
| service_args='-p /run/lock' | service_args='-p /run/lock' | ||||||
| service_type='oneshot' | service_type='oneshot' | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user