summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'www-misc/profile-sync-daemon/files/daemon')
-rw-r--r--www-misc/profile-sync-daemon/files/daemon60
1 files changed, 0 insertions, 60 deletions
diff --git a/www-misc/profile-sync-daemon/files/daemon b/www-misc/profile-sync-daemon/files/daemon
deleted file mode 100644
index 6d0666ce5..000000000
--- a/www-misc/profile-sync-daemon/files/daemon
+++ /dev/null
@@ -1,60 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-description="Webbrowser profile syncing"
-extra_commands="sync"
-
-start() {
- ebegin "Starting Profile-Sync-Daemon"
- if [ -z "$USERS" ]; then
- eerror "Define at least one user in /etc/conf.d/psd"
- return 1
- fi
-
- for i in $USERS; do
- homedir=$(su -c 'echo $HOME' $i)
- if [ ! -d "$homedir" ]; then
- eerror "Invalid user defined in /etc/conf.d/psd"
- return 1
- fi
- done
-
- /usr/bin/profile-sync-daemon check
- start-stop-daemon --start --pidfile "${PIDFILE}" --make-pidfile --background \
- --exec /usr/bin/profile-sync-daemon -- sync
- eend $?
-}
-
-stop() {
- ebegin "Stopping Profile-Sync-Daemon"
- if [ ! -f "$PIDFILE" ]; then
- eerror "Profile-Sync-Daemon is not running, nothing to stop!"
- return 1
- else
- /usr/bin/profile-sync-daemon sync && /usr/bin/profile-sync-daemon unsync
- rm -f "${PIDFILE}"
- fi
- eend $?
-}
-
-sync() {
- ebegin "Syncing browser profiles in tmpfs to physical disc"
- if [ ! -f "$PIDFILE" ]; then
- eerror "Profile-Sync-Daemon is not running... cannot sync!"
- return 1
- else
- /usr/bin/profile-sync-daemon sync
- fi
- eend $?
-}
-
-status() {
- if [ ! -f "$PIDFILE" ]; then
- eerror "Profile-Sync-Daemon is not running"
- else
- einfo "Profile-Sync-Daemon is running"
- fi
- eend $?
-}
-