systemd-units: added a couple of units.
This commit is contained in:
parent
6623f95f7a
commit
b4c364b8e9
13 changed files with 141 additions and 22 deletions
17
srcpkgs/systemd-units/files/acpid.service
Normal file
17
srcpkgs/systemd-units/files/acpid.service
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
[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.
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=forking
|
||||||
|
ExecStart=/usr/sbin/acpid
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
12
srcpkgs/systemd-units/files/bluetooth.service
Normal file
12
srcpkgs/systemd-units/files/bluetooth.service
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Bluetooth Manager
|
||||||
|
After=syslog.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=dbus
|
||||||
|
BusName=org.bluez
|
||||||
|
ExecStart=/usr/sbin/bluetoothd -n
|
||||||
|
StandardOutput=syslog
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=bluetooth.target
|
9
srcpkgs/systemd-units/files/dcron.service
Normal file
9
srcpkgs/systemd-units/files/dcron.service
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Periodic Command Scheduler
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
EnvironmentFile=/etc/conf.d/crond
|
||||||
|
ExecStart=/usr/sbin/crond -f $CROND_ARGS
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
10
srcpkgs/systemd-units/files/dhcpcd.service
Normal file
10
srcpkgs/systemd-units/files/dhcpcd.service
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Lightweight DHCP client daemon
|
||||||
|
Wants=network.target
|
||||||
|
Before=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=/sbin/dhcpcd -q --nobackground
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
10
srcpkgs/systemd-units/files/gdm.service
Normal file
10
srcpkgs/systemd-units/files/gdm.service
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Gnome Display Manager
|
||||||
|
Requires=dev-tty7.device
|
||||||
|
After=dev-tty7.device systemd-user-sessions.service
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=/usr/sbin/gdm -nodaemon
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=graphical.target
|
11
srcpkgs/systemd-units/files/ntpd.service
Normal file
11
srcpkgs/systemd-units/files/ntpd.service
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Network Time Service
|
||||||
|
After=syslog.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
User=ntpd
|
||||||
|
ExecStartPre=ln -sf /var/chroot/ntpd/var/db/ntpd.drift /var/db/ntpd.drift
|
||||||
|
ExecStart=/usr/bin/ntpd -f /var/db/ntpd.drift -u ntpd:ntpd -i /var/chroot/ntpd -n
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
16
srcpkgs/systemd-units/files/polkitd.service
Normal file
16
srcpkgs/systemd-units/files/polkitd.service
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Policy Manager
|
||||||
|
After=syslog.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=dbus
|
||||||
|
BusName=org.freedesktop.PolicyKit1
|
||||||
|
ExecStart=/usr/libexec/polkitd
|
||||||
|
StandardOutput=syslog
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
# We pull this in by graphical.target instead of waiting for the bus
|
||||||
|
# activation, to speed things up a little: gdm uses this anyway so it is nice
|
||||||
|
# if it is already around when gdm wants to use it and doesn't have to wait for
|
||||||
|
# it.
|
||||||
|
WantedBy=graphical.target
|
|
@ -1,14 +0,0 @@
|
||||||
[Unit]
|
|
||||||
Description=Network Manager
|
|
||||||
After=syslog.target
|
|
||||||
Wants=network.target
|
|
||||||
Before=network.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=dbus
|
|
||||||
BusName=org.freedesktop.NetworkManager
|
|
||||||
ExecStart=/usr/sbin/NetworkManager --no-daemon
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
Alias=dbus-org.freedesktop.NetworkManager.service
|
|
15
srcpkgs/systemd-units/files/sshd.service
Normal file
15
srcpkgs/systemd-units/files/sshd.service
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
[Unit]
|
||||||
|
Description=SSH Secure Shell Service
|
||||||
|
After=syslog.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=/usr/sbin/sshd -D
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
|
||||||
|
# Note that this is the service file for running a single SSH server for all
|
||||||
|
# incoming connections, suitable only for systems with a large amount of SSH
|
||||||
|
# traffic. In almost all other cases it is a better idea to use sshd.socket +
|
||||||
|
# sshd@.service (i.e. the on-demand spawning version for one instance per
|
||||||
|
# connection).
|
12
srcpkgs/systemd-units/files/udisks.service
Normal file
12
srcpkgs/systemd-units/files/udisks.service
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Disk Manager
|
||||||
|
After=syslog.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=dbus
|
||||||
|
BusName=org.freedesktop.UDisks
|
||||||
|
ExecStart=/usr/libexec/udisks-daemon
|
||||||
|
StandardOutput=syslog
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=graphical.target
|
11
srcpkgs/systemd-units/files/upowerd.service
Normal file
11
srcpkgs/systemd-units/files/upowerd.service
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Power Manager
|
||||||
|
After=syslog.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=dbus
|
||||||
|
BusName=org.freedesktop.UPower
|
||||||
|
ExecStart=/usr/libexec/upowerd
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=graphical.target
|
11
srcpkgs/systemd-units/files/wpa_supplicant.service
Normal file
11
srcpkgs/systemd-units/files/wpa_supplicant.service
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Wi-Fi Security Service
|
||||||
|
After=syslog.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=dbus
|
||||||
|
BusName=fi.epitest.hostap.WPASupplicant
|
||||||
|
ExecStart=/usr/sbin/wpa_supplicant -c /etc/wpa_supplicant/wpa_supplicant.conf -u
|
||||||
|
StandardOutput=syslog
|
||||||
|
|
||||||
|
# Hmm, a WantedBy=multi-user.target probably makes sense here.
|
|
@ -1,19 +1,18 @@
|
||||||
# Template file for 'systemd-units'
|
# Template file for 'systemd-units'
|
||||||
pkgname=systemd-units
|
pkgname=systemd-units
|
||||||
version=0.0.1
|
version=0.2
|
||||||
build_style=custom-install
|
build_style=custom-install
|
||||||
short_desc="Vanilla GNU/Linux systemd units"
|
short_desc="Void GNU/Linux systemd units"
|
||||||
maintainer="Mike Rossset<mike.rosset@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
homepage="https://github.com/xtraeme/vanilla"
|
homepage="http://code.google.com/p/xbps"
|
||||||
checksum=b31983b27630b3ef99f68bd8382851a7963542c944b625bdbfd2f2ff301a02d3
|
|
||||||
long_desc="
|
long_desc="
|
||||||
$pkgname cantains systemd units for vanilla gnu/linux services"
|
$pkgname contains systemd units for a couple of Void GNU/Linux services."
|
||||||
|
|
||||||
noextract=yes
|
noextract=yes
|
||||||
noarch=yes
|
noarch=yes
|
||||||
|
|
||||||
do_install()
|
do_install()
|
||||||
{
|
{
|
||||||
mkdir -p $DESTDIR/lib/systemd/system
|
vmkdir lib/systemd/system
|
||||||
install -D -m644 ${FILESDIR}/service/*.service ${DESTDIR}/lib/systemd/system/
|
install -m644 ${FILESDIR}/*.service ${DESTDIR}/lib/systemd/system
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue