saving uncommitted changes in /etc prior to emerge run
This commit is contained in:
@@ -1,31 +0,0 @@
|
||||
#!/sbin/runscript
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License, v2 or
|
||||
# later
|
||||
# $Id$
|
||||
|
||||
DAEMON=/usr/sbin/bitlbee
|
||||
PIDFILE=/var/run/bitlbee/bitlbee.pid
|
||||
|
||||
depend() {
|
||||
need logger net
|
||||
}
|
||||
|
||||
start () {
|
||||
ebegin "Starting bitlbee"
|
||||
checkpath -d -m 0755 -o bitlbee:bitlbee $(dirname ${PIDFILE})
|
||||
start-stop-daemon --start --quiet \
|
||||
-u bitlbee:bitlbee --exec ${DAEMON} --pidfile ${PIDFILE} \
|
||||
-- -P ${PIDFILE} ${BITLBEE_OPTS}
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping bitlbee"
|
||||
local pidfile=
|
||||
yesno ${BITLBEE_STOP_ALL:-YES} ||
|
||||
pidfile="--pidfile ${PIDFILE}"
|
||||
start-stop-daemon --stop --quiet ${pidfile} -u bitlbee:bitlbee
|
||||
eend $?
|
||||
}
|
||||
|
||||
@@ -1,25 +0,0 @@
|
||||
#!/sbin/runscript
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
pidfile="/var/run/nvidia-persistenced/nvidia-persistenced.pid"
|
||||
|
||||
start() {
|
||||
if ! [ "${NVPD_USER}x" = x ]; then
|
||||
ebegin "Starting nvidia-persistenced for ${NVPD_USER}"
|
||||
NVPD_USER_ARG="--user ${NVPD_USER}"
|
||||
else
|
||||
ebegin "Starting nvidia-persistenced"
|
||||
fi
|
||||
start-stop-daemon --start --quiet --pidfile ${pidfile} \
|
||||
--background --exec /opt/bin/nvidia-persistenced \
|
||||
-- ${NVPD_USER_ARG} ${ARGS}
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping nvidia-persistenced"
|
||||
start-stop-daemon --stop --quiet --pidfile ${pidfile}
|
||||
eend $?
|
||||
}
|
||||
@@ -1,25 +0,0 @@
|
||||
#!/sbin/runscript
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
pidfile="/run/nvidia-smi.pid"
|
||||
|
||||
depend() {
|
||||
after modules
|
||||
}
|
||||
|
||||
start() {
|
||||
ebegin "Starting NVIDIA System Management Interface"
|
||||
rm -f ${pidfile}
|
||||
start-stop-daemon --start --quiet --pidfile ${pidfile} \
|
||||
--make-pidfile --background --exec /opt/bin/nvidia-smi -- \
|
||||
-q -l 300
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping NVIDIA System Management Interface"
|
||||
start-stop-daemon --stop --quiet --pidfile ${pidfile}
|
||||
eend $?
|
||||
}
|
||||
@@ -1,84 +0,0 @@
|
||||
#!/sbin/runscript
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
PIDFILE=/var/run/tor/tor.pid
|
||||
CONFFILE=/etc/tor/torrc
|
||||
GRACEFUL_TIMEOUT=${GRACEFUL_TIMEOUT:-60}
|
||||
|
||||
# See bug #523552, and https://trac.torproject.org/projects/tor/ticket/5525
|
||||
# Graceful = wait 30 secs or so until all connections are properly closed.
|
||||
extra_commands="checkconfig"
|
||||
extra_started_commands="graceful gracefulstop reload"
|
||||
description="Anonymizing overlay network for TCP"
|
||||
description_checkconfig="Check for valid config file."
|
||||
description_reload="Reload the configuration."
|
||||
description_graceful="Gracefully restart."
|
||||
description_gracefulstop="Gracefully stop."
|
||||
|
||||
depend() {
|
||||
need net
|
||||
}
|
||||
|
||||
checkconfig() {
|
||||
# first check that it exists
|
||||
if [ ! -f ${CONFFILE} ] ; then
|
||||
eerror "You need to setup ${CONFFILE} first"
|
||||
eerror "Example is in ${CONFFILE}.sample"
|
||||
return 1
|
||||
fi
|
||||
|
||||
# now verify whether the configuration is valid
|
||||
/usr/bin/tor --verify-config -f ${CONFFILE} > /dev/null 2>&1
|
||||
if [ $? -eq 0 ] ; then
|
||||
einfo "Tor configuration (${CONFFILE}) is valid."
|
||||
return 0
|
||||
else
|
||||
eerror "Tor configuration (${CONFFILE}) not valid."
|
||||
/usr/bin/tor --verify-config -f ${CONFFILE}
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
start() {
|
||||
checkconfig || return 1
|
||||
checkpath -d -m 0755 -o tor:tor /var/run/tor
|
||||
ebegin "Starting Tor"
|
||||
HOME=/var/lib/tor
|
||||
start-stop-daemon --start --pidfile "${PIDFILE}" --quiet --exec /usr/bin/tor -- -f "${CONFFILE}" --runasdaemon 1 --PidFile "${PIDFILE}" > /dev/null 2>&1
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping Tor"
|
||||
start-stop-daemon --stop --pidfile "${PIDFILE}" --exec /usr/bin/tor -- --PidFile "${PIDFILE}"
|
||||
eend $?
|
||||
}
|
||||
|
||||
graceful() {
|
||||
gracefulstop
|
||||
start
|
||||
eend $?
|
||||
}
|
||||
|
||||
gracefulstop() {
|
||||
local rc=0
|
||||
ebegin "Gracefully stopping Tor"
|
||||
ebegin "This can take up to ${GRACEFUL_TIMEOUT} seconds"
|
||||
start-stop-daemon -P --stop --signal INT -R ${GRACEFUL_TIMEOUT} --pidfile "${PIDFILE}" --exec /usr/bin/tor -- --PidFile "${PIDFILE}"
|
||||
rc=$?
|
||||
eend "done"
|
||||
eend $rc
|
||||
}
|
||||
|
||||
reload() {
|
||||
if [ ! -f ${PIDFILE} ]; then
|
||||
eerror "${SVCNAME} isn't running"
|
||||
return 1
|
||||
fi
|
||||
checkconfig || return 1
|
||||
ebegin "Reloading Tor configuration"
|
||||
start-stop-daemon --signal HUP --pidfile ${PIDFILE}
|
||||
eend $?
|
||||
}
|
||||
@@ -1,28 +0,0 @@
|
||||
#!/sbin/runscript
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License, v2 or
|
||||
# later
|
||||
# $Header: /var/cvsroot/gentoo-x86/net-im/bitlbee/files/bitlbee.initd,v 1.4 2013/01/08 14:25:21 cedk Exp $
|
||||
|
||||
DAEMON=/usr/sbin/bitlbee
|
||||
PIDFILE=/var/run/bitlbee/bitlbee.pid
|
||||
|
||||
depend() {
|
||||
need logger net
|
||||
}
|
||||
|
||||
start () {
|
||||
ebegin "Starting bitlbee"
|
||||
checkpath -d -m 0755 -o bitlbee:bitlbee `dirname ${PIDFILE}`
|
||||
start-stop-daemon --start --quiet \
|
||||
-u bitlbee:bitlbee --exec ${DAEMON} -- -P ${PIDFILE} \
|
||||
${BITLBEE_OPTS}
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping bitlbee"
|
||||
start-stop-daemon --stop --quiet --pidfile ${PIDFILE}
|
||||
eend $?
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/sbin/runscript
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/x11-drivers/nvidia-drivers/files/nvidia-persistenced.init,v 1.2 2014/09/19 22:09:28 jer Exp $
|
||||
# $Id$
|
||||
|
||||
pidfile="/var/run/nvidia-persistenced/nvidia-persistenced.pid"
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/sbin/runscript
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/x11-drivers/nvidia-drivers/files/nvidia-smi.init,v 1.2 2013/05/09 16:32:00 jer Exp $
|
||||
# $Id$
|
||||
|
||||
pidfile="/run/nvidia-smi.pid"
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/sbin/runscript
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/net-misc/tor/files/tor.initd-r7,v 1.2 2014/12/23 17:26:49 blueness Exp $
|
||||
# $Id$
|
||||
|
||||
PIDFILE=/var/run/tor/tor.pid
|
||||
CONFFILE=/etc/tor/torrc
|
||||
|
||||
Reference in New Issue
Block a user