systemd-units: add units for nscd, saslauthd, ufw and wicd.

This commit is contained in:
Juan RP 2011-10-10 17:17:38 +02:00
parent 78040efe34
commit 3e54485fda
8 changed files with 66 additions and 14 deletions

View file

@ -1,17 +1,7 @@
[Unit]
Description=ACPI Event Daemon
After=syslog.target
# This could probably benefit from socket activation, but honestly I think it
# is time for acpid to go away, and hence I am not planning to spend the time
# to add socket activation here. We use Type=forking to ensure that the
# communication sockets are in place before boot proceeds with any service
# needing this service. Would acpid support socket activation we could use
# Type=simple here.
Requires=acpid.socket
[Service]
Type=forking
ExecStart=/usr/sbin/acpid
[Install]
WantedBy=multi-user.target
EnvironmentFile=/etc/conf.d/acpid
ExecStart=/usr/sbin/acpid -f ${ACPID_ARGS}

View file

@ -0,0 +1,8 @@
[Unit]
Description=ACPID Listen Socket
[Socket]
ListenStream=/run/acpid.socket
[Install]
WantedBy=sockets.target

View file

@ -0,0 +1,12 @@
[Unit]
Description=Name Service Cache Daemon
[Service]
Type=forking
ExecStart=/usr/sbin/nscd
ExecStop=/usr/sbin/nscd --shutdown
Restart=always
[Install]
WantedBy=multi-user.target
Also=nscd.socket

View file

@ -0,0 +1,8 @@
[Unit]
Description=Name Service Cache Daemon Socket
[Socket]
ListenStream=/var/run/nscd/socket
[Install]
WantedBy=sockets.target

View file

@ -0,0 +1,11 @@
[Unit]
Description=Cyrus SASL authentication daemon
[Service]
Type=forking
EnvironmentFile=/etc/conf.d/saslauthd
ExecStart=/usr/sbin/saslauthd $SASLAUTHD_OPTS
PidFile=/var/run/saslauthd/saslauthd.pid
[Install]
WantedBy=multi-user.target

View file

@ -0,0 +1,11 @@
[Unit]
Description=CLI Netfilter Manager
[Service]
Type=oneshot
ExecStart=/lib/ufw/ufw-init start
ExecStop=/lib/ufw/ufw-init stop
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target

View file

@ -0,0 +1,11 @@
[Unit]
Description=Wicd Network Manager
[Service]
Type=dbus
BusName=org.wicd.daemon
ExecStart=/usr/sbin/wicd -f
Restart=always
[Install]
WantedBy=multi-user.target

View file

@ -1,6 +1,6 @@
# Template file for 'systemd-units'
pkgname=systemd-units
version=0.4
version=0.5
build_style=custom-install
short_desc="Void GNU/Linux systemd units"
maintainer="Juan RP <xtraeme@gmail.com>"
@ -15,4 +15,5 @@ do_install()
{
vmkdir lib/systemd/system
install -m644 ${FILESDIR}/*.service ${DESTDIR}/lib/systemd/system
install -m644 ${FILESDIR}/*.socket ${DESTDIR}/lib/systemd/system
}