* [gentoo-commits] gentoo-x86 commit in app-backup/burp/files: burp.initd
@ 2015-04-09 15:19 Amadeusz Zolnowski (aidecoe)
0 siblings, 0 replies; only message in thread
From: Amadeusz Zolnowski (aidecoe) @ 2015-04-09 15:19 UTC (permalink / raw
To: gentoo-commits
aidecoe 15/04/09 15:19:10
Modified: burp.initd
Log:
Apply improvements to initd script by Marcin Mirosław. Fix bug #533150.
Clean up script. Don't check /etc/burp/CA path because it's created correctly
by burp at startup.
(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key F0134531E1DBFAB5)
Revision Changes Path
1.2 app-backup/burp/files/burp.initd
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-backup/burp/files/burp.initd?rev=1.2&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-backup/burp/files/burp.initd?rev=1.2&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-backup/burp/files/burp.initd?r1=1.1&r2=1.2
Index: burp.initd
===================================================================
RCS file: /var/cvsroot/gentoo-x86/app-backup/burp/files/burp.initd,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- burp.initd 1 Dec 2014 16:28:47 -0000 1.1
+++ burp.initd 9 Apr 2015 15:19:10 -0000 1.2
@@ -1,9 +1,21 @@
#!/sbin/runscript
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-backup/burp/files/burp.initd,v 1.1 2014/12/01 16:28:47 aidecoe Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-backup/burp/files/burp.initd,v 1.2 2015/04/09 15:19:10 aidecoe Exp $
-PIDFILE=/run/burp-server.pid
+BURP_CONFIG="/etc/burp/burp-server.conf"
+
+description="Burp is a network backup and restore program"
+
+command="/usr/sbin/burp"
+command_args="-c '${BURP_CONFIG}' -F"
+command_background="yes"
+pidfile="/run/burp-server.pid"
+start_stop_daemon_arg="--make-pidfile --wait 500"
+
+extra_started_commands="reload summary"
+description_reload="Reloads configuration"
+description_summary="Displays main status monitor summary"
depend() {
need localmount
@@ -11,25 +23,19 @@
use net
}
-start() {
- ebegin "Starting burp server"
+start_pre() {
checkpath -o burp:burp -m 0775 -d /run/lock/burp
checkpath -o root:burp -m 0775 -d /etc/burp
- checkpath -o root:burp -m 0775 -d /etc/burp/CA
checkpath -o root:burp -m 0750 -d /etc/burp/clientconfdir
checkpath -o root:burp -m 0640 -f /etc/burp/burp-server.conf
- start-stop-daemon --start \
- --pidfile "$PIDFILE" \
- --make-pidfile \
- --background \
- --wait 500 \
- --exec /usr/sbin/burp -- -c /etc/burp/burp-server.conf -F
- eend $? "Failed to start burp server"
}
-stop() {
- ebegin "Stopping burp server"
- start-stop-daemon --stop \
- --pidfile "$PIDFILE"
- eend $? "Failed to stop burp server"
+reload() {
+ ebegin "Reloading ${SVCNAME} configuration"
+ start-stop-daemon --exec ${command} --signal HUP
+ eend $?
+}
+
+summary() {
+ "${command}" -c "${BURP_CONFIG}" -a S
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-04-09 15:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-09 15:19 [gentoo-commits] gentoo-x86 commit in app-backup/burp/files: burp.initd Amadeusz Zolnowski (aidecoe)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox