commit a542e0d012c7b291bad5745a874bf6e354729f2d
Author: Mariusz Mazur <[email protected]>
Date:   Thu Feb 5 08:34:21 2015 +0000

    Use systemd-protected /tmp for tmp files

 [email protected] | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/[email protected] b/[email protected]
index c55b955..b9785bc 100644
--- a/[email protected]
+++ b/[email protected]
@@ -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]
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/swatch.git/commitdiff/a542e0d012c7b291bad5745a874bf6e354729f2d

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to