]> Pileus Git - ~andy/sunrise/blob - www-misc/profile-sync-daemon/files/3.2-pid.patch
Automatic update to use.local.desc
[~andy/sunrise] / www-misc / profile-sync-daemon / files / 3.2-pid.patch
1 --- profile-sync-daemon
2 +++ profile-sync-daemon
3 @@ -5,7 +5,7 @@
4  # Inspired by some code originally  written by Colin Verot
5  
6  BROWSERS="chromium google-chrome midori mozilla opera opera-next" # all supported browsers
7 -. /etc/psd.conf
8 +. /etc/conf.d/psd
9  
10  set_which() {
11         homedir="$(su -c 'echo $HOME' $user)"
12 @@ -108,17 +108,17 @@
13                 ;;
14         check)
15                 # do not run if the daemon is running
16 -               [[ ! -f /run/daemons/psd ]] && check
17 +               [[ ! -f $PIDFILE ]] && check
18                 ;;
19         sync)
20                 sync
21                 ;;
22         unsync)
23                 # make sure the daemon is running
24 -               [[ -f /run/daemons/psd ]] && unsync
25 +               [[ -f $PIDFILE ]] && unsync
26                 ;;
27         *)
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
31  esac
32  exit 0
33 --- psd.conf
34 +++ psd.conf
35 @@ -2,6 +2,9 @@
36  # /etc/psd.conf
37  #
38  # For documentation, see: https://wiki.archlinux.org/index.php/Profile-sync-daemon
39 +
40 +# path to PIDFILE to use
41 +PIDFILE=/var/run/psd.pid
42  
43  # List users separated by spaces whose browser(s) profile(s) will get symlinked 
44  # and sync'ed to tmpfs.