Updated program path to be variable
This commit is contained in:
parent
31d32db211
commit
34aa22b110
|
@ -21,7 +21,7 @@
|
||||||
|
|
||||||
prog=osync
|
prog=osync
|
||||||
progexec=osync.sh
|
progexec=osync.sh
|
||||||
progpath=/usr/local/bin
|
progpath=$(which osync.sh)
|
||||||
confdir=/etc/osync
|
confdir=/etc/osync
|
||||||
pidfile=/var/run/$prog
|
pidfile=/var/run/$prog
|
||||||
SCRIPT_BUILD=2015092701
|
SCRIPT_BUILD=2015092701
|
||||||
|
|
|
@ -6,7 +6,7 @@ Wants=network-online.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
ExecStart=/usr/local/bin/osync.sh /etc/osync/%i --on-changes --errors-only
|
ExecStart=$(which osync.sh) /etc/osync/%i --on-changes --errors-only
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
|
@ -5,7 +5,7 @@ Wants=network-online.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
ExecStart=/usr/local/bin/osync.sh /etc/osync/%i --on-changes --silent
|
ExecStart=$(which osync.sh) /etc/osync/%i --on-changes --silent
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
Loading…
Reference in New Issue