Updated program path to be variable

This commit is contained in:
deajan 2017-03-14 21:26:43 +01:00
parent 31d32db211
commit 34aa22b110
3 changed files with 3 additions and 3 deletions

View File

@ -21,7 +21,7 @@
prog=osync
progexec=osync.sh
progpath=/usr/local/bin
progpath=$(which osync.sh)
confdir=/etc/osync
pidfile=/var/run/$prog
SCRIPT_BUILD=2015092701

View File

@ -6,7 +6,7 @@ Wants=network-online.target
[Service]
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]
WantedBy=multi-user.target

View File

@ -5,7 +5,7 @@ Wants=network-online.target
[Service]
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]
WantedBy=multi-user.target