From: Benjamin Kaduk Date: Thu, 23 Oct 2014 04:34:44 +0000 (-0400) Subject: Use absolute paths in unit files X-Git-Tag: debian/1.6.10-1~13 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=dc5450447453da8a45bc430e93fec2e3d9e7f27a;p=packages%2Fo%2Fopenafs.git Use absolute paths in unit files --- diff --git a/debian/openafs-client.service b/debian/openafs-client.service index c8ec0dfb6..c85cb19ac 100755 --- a/debian/openafs-client.service +++ b/debian/openafs-client.service @@ -8,12 +8,12 @@ Before=remote-fs.target Type=forking ExecStartPre=/usr/share/openafs/openafs-client-precheck ExecStart=/sbin/afsd $AFSD_ARGS -ExecStartPost=fs setcrypt $AFS_SETCRYPT -ExecStartPost=fs sysname $AFS_SYSNAME -ExecStopPre=grep -qv ^1$ /proc/sys/kernel/modules_disabled -ExecStop=umount -a -t afs -ExecStop=umount -af -t afs -ExecStopPost=rmmod openafs +ExecStartPost=/ufs/bin/fs setcrypt $AFS_SETCRYPT +ExecStartPost=/usr/bin/fs sysname $AFS_SYSNAME +ExecStopPre=/bin/grep -qv ^1$ /proc/sys/kernel/modules_disabled +ExecStop=/bin/umount -a -t afs +ExecStop=/bin/umount -af -t afs +ExecStopPost=/sbin/rmmod openafs EnvironmentFile=/var/cache/openafs/openafs-client.env KillMode=none diff --git a/debian/openafs-fileserver.service b/debian/openafs-fileserver.service index 1e8f4d831..9c4ee2e24 100755 --- a/debian/openafs-fileserver.service +++ b/debian/openafs-fileserver.service @@ -7,4 +7,4 @@ After=network.target network-online.target local-fs.target Type=forking EnvironmentFile=-/etc/default/openafs-fileserver ExecStart=/usr/sbin/bosserver $DAEMON_ARGS -ExecStopPre=bos shutdown localhost -wait -localauth +ExecStopPre=/usr/bin/bos shutdown localhost -wait -localauth