Enforcing separation of the command and its args and full command paths

This commit is contained in:
Jack L. Frost 2015-01-08 12:25:38 +03:00
parent 0ef5a664f7
commit 8bab91cc17
4 changed files with 5 additions and 4 deletions

View File

@ -2,7 +2,7 @@
#service_respawn='true'
service_username='torrent'
service_command='sudo'
service_command='/usr/bin/sudo'
service_args="-u $service_username -- /usr/bin/bitflu --config=/etc/bitflu.cfg"
start() {

View File

@ -8,5 +8,5 @@ fi
[[ "$cfg_hostname" ]] || { cfg_hostname='localhost'; }
service_type='oneshot'
service_command='hostname'
service_command='/usr/bin/hostname'
service_args="$cfg_hostname"

View File

@ -3,7 +3,8 @@
cfg_iface="${service_name%%.*}"
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() {
local iface="$1" timer='0' timeout='6'

View File

@ -1,5 +1,5 @@
#!/usr/bin/env watchman
service_command='mkdir'
service_command='/usr/bin/mkdir'
service_args='-p /run/lock'
service_type='oneshot'