Added --errors-only to service files
This commit is contained in:
parent
fddba8ee93
commit
8648980dd3
|
@ -46,7 +46,7 @@ start() {
|
||||||
for cfgfile in $confdir/*.conf
|
for cfgfile in $confdir/*.conf
|
||||||
do
|
do
|
||||||
if [ -f $progpath/$progexec ]; then
|
if [ -f $progpath/$progexec ]; then
|
||||||
$progpath/$progexec $cfgfile --on-changes > /dev/null 2>&1 &
|
$progpath/$progexec $cfgfile --on-changes --errors-only > /dev/null 2>&1 &
|
||||||
else
|
else
|
||||||
echo "Cannot find $prog executable in $progpath"
|
echo "Cannot find $prog executable in $progpath"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
|
@ -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 --silent
|
ExecStart=/usr/local/bin/osync.sh /etc/osync/%i --on-changes --errors-only
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
Loading…
Reference in New Issue