summarylogtreecommitdiffstats
path: root/psd.install
blob: b9cbd46dbb743c31823593b7ebed9c5cd3ac5ca5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
DAEMON_FILE="/run/psd"

post_install() {
	echo '--> WARNING! DEVELOPMENT VERSION!'
	echo
	echo '--> Define which users will make use of the sync in /etc/psd.conf'
	echo '--> Read the manpage before use or see the wiki page'
	echo '--> https://wiki.archlinux.org/index.php/Profile-sync-daemon'
	echo
	echo '--> ALWAYS backup your profile data before using utils like psd!'
}


pre_remove() {
	if [ -e $DAEMON_FILE ]; then
		if ! systemd-notify --booted; then # not using systemd	
			echo '--> Automatically stopping psd to rotate profiles back out of tmpfs.'
			/etc/rc.d/psd stop
		else
			echo '--> Automatically stopping psd to rotate profiles back out of tmpfs.'
			/usr/bin/systemctl stop psd.service
		fi
	fi
}