From 3e54485fdab2f1f75280ddc62174c7d25a222980 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 10 Oct 2011 17:17:38 +0200 Subject: [PATCH] systemd-units: add units for nscd, saslauthd, ufw and wicd. --- srcpkgs/systemd-units/files/acpid.service | 16 +++------------- srcpkgs/systemd-units/files/acpid.socket | 8 ++++++++ srcpkgs/systemd-units/files/nscd.service | 12 ++++++++++++ srcpkgs/systemd-units/files/nscd.socket | 8 ++++++++ srcpkgs/systemd-units/files/saslauthd.service | 11 +++++++++++ srcpkgs/systemd-units/files/ufw.service | 11 +++++++++++ srcpkgs/systemd-units/files/wicd.service | 11 +++++++++++ srcpkgs/systemd-units/template | 3 ++- 8 files changed, 66 insertions(+), 14 deletions(-) create mode 100644 srcpkgs/systemd-units/files/acpid.socket create mode 100644 srcpkgs/systemd-units/files/nscd.service create mode 100644 srcpkgs/systemd-units/files/nscd.socket create mode 100644 srcpkgs/systemd-units/files/saslauthd.service create mode 100644 srcpkgs/systemd-units/files/ufw.service create mode 100644 srcpkgs/systemd-units/files/wicd.service diff --git a/srcpkgs/systemd-units/files/acpid.service b/srcpkgs/systemd-units/files/acpid.service index 937e8fd3dd..8e2bb7fe3c 100644 --- a/srcpkgs/systemd-units/files/acpid.service +++ b/srcpkgs/systemd-units/files/acpid.service @@ -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} diff --git a/srcpkgs/systemd-units/files/acpid.socket b/srcpkgs/systemd-units/files/acpid.socket new file mode 100644 index 0000000000..1e5365bf1e --- /dev/null +++ b/srcpkgs/systemd-units/files/acpid.socket @@ -0,0 +1,8 @@ +[Unit] +Description=ACPID Listen Socket + +[Socket] +ListenStream=/run/acpid.socket + +[Install] +WantedBy=sockets.target diff --git a/srcpkgs/systemd-units/files/nscd.service b/srcpkgs/systemd-units/files/nscd.service new file mode 100644 index 0000000000..22b9dd8e7a --- /dev/null +++ b/srcpkgs/systemd-units/files/nscd.service @@ -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 diff --git a/srcpkgs/systemd-units/files/nscd.socket b/srcpkgs/systemd-units/files/nscd.socket new file mode 100644 index 0000000000..9b8da6f39a --- /dev/null +++ b/srcpkgs/systemd-units/files/nscd.socket @@ -0,0 +1,8 @@ +[Unit] +Description=Name Service Cache Daemon Socket + +[Socket] +ListenStream=/var/run/nscd/socket + +[Install] +WantedBy=sockets.target diff --git a/srcpkgs/systemd-units/files/saslauthd.service b/srcpkgs/systemd-units/files/saslauthd.service new file mode 100644 index 0000000000..42d8ad768b --- /dev/null +++ b/srcpkgs/systemd-units/files/saslauthd.service @@ -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 diff --git a/srcpkgs/systemd-units/files/ufw.service b/srcpkgs/systemd-units/files/ufw.service new file mode 100644 index 0000000000..dd9cd5ec37 --- /dev/null +++ b/srcpkgs/systemd-units/files/ufw.service @@ -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 diff --git a/srcpkgs/systemd-units/files/wicd.service b/srcpkgs/systemd-units/files/wicd.service new file mode 100644 index 0000000000..4ae9e4317b --- /dev/null +++ b/srcpkgs/systemd-units/files/wicd.service @@ -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 diff --git a/srcpkgs/systemd-units/template b/srcpkgs/systemd-units/template index 9ca272091c..74ba7380fd 100644 --- a/srcpkgs/systemd-units/template +++ b/srcpkgs/systemd-units/template @@ -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 " @@ -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 }