1 --- profile-sync-daemon
2 +++ profile-sync-daemon
4 # Inspired by some code originally written by Colin Verot
6 BROWSERS="chromium google-chrome midori mozilla opera opera-next" # all supported browsers
11 homedir="$(su -c 'echo $HOME' $user)"
15 # do not run if the daemon is running
16 - [[ ! -f /run/daemons/psd ]] && check
17 + [[ ! -f $PIDFILE ]] && check
23 # make sure the daemon is running
24 - [[ -f /run/daemons/psd ]] && unsync
25 + [[ -f $PIDFILE ]] && unsync
28 # keep user from messing with this directly
29 - [[ -f /run/daemons/psd ]] && echo "You should not call this script directly, let the /etc/rc.d/psd do it for you!" && exit 1
30 + [[ -f $PIDFILE ]] && echo "You should not call this script directly, let the /etc/rc.d/psd do it for you!" && exit 1
38 # For documentation, see: https://wiki.archlinux.org/index.php/Profile-sync-daemon
40 +# path to PIDFILE to use
41 +PIDFILE=/var/run/psd.pid
43 # List users separated by spaces whose browser(s) profile(s) will get symlinked
44 # and sync'ed to tmpfs.