]> git.pld-linux.org Git - packages/swatch.git/commitdiff
Use systemd-protected /tmp for tmp files
authorMariusz Mazur <mmazur@axeos.com>
Thu, 5 Feb 2015 08:34:21 +0000 (08:34 +0000)
committerMariusz Mazur <mmazur@axeos.com>
Thu, 5 Feb 2015 08:34:21 +0000 (08:34 +0000)
swatch@.service

index c55b9555015cd9c3c1b0121e319fa0941f41501a..b9785bcb4a36a7f0e77367146192307e160065fa 100644 (file)
@@ -5,11 +5,12 @@ After=swatch.target
 
 [Service]
 Type=simple
+PrivateTmp=true
 Environment="RC_FILE=/etc/swatch/%i.rc" "PRESTART_EXEC=/etc/swatch/%i.prestart" "POSTSTOP_EXEC=/etc/swatch/%i.poststop"
 EnvironmentFile=/etc/swatch/%i.conf
 ExecStartPre=/bin/sh -c '[ ! -e ${PRESTART_EXEC} ] && exit 0; ${PRESTART_EXEC}'
 ExecStopPost=/bin/sh -c '[ ! -e ${POSTSTOP_EXEC} ] && exit 0; ${POSTSTOP_EXEC}'
-ExecStart=/usr/bin/swatch --config-file ${RC_FILE} $SWATCH_OPTS
+ExecStart=/usr/bin/swatch --script-dir /tmp --config-file ${RC_FILE} $SWATCH_OPTS
 ExecReload=/bin/kill -HUP $MAINPID
 
 [Install]
This page took 0.073285 seconds and 4 git commands to generate.