diff options
author | William Harrington <kb0iic@berzerkula.org> | 2014-03-05 13:16:40 -0600 |
---|---|---|
committer | William Harrington <kb0iic@berzerkula.org> | 2014-03-05 13:16:40 -0600 |
commit | d3078b183348e703cf5928128d2706c31fc7d870 (patch) | |
tree | d63a12e38bbf721d79d3181351e1efc1bfc22af9 /clfs/units |
Initial commit.
Diffstat (limited to 'clfs/units')
29 files changed, 334 insertions, 0 deletions
diff --git a/clfs/units/acpid.service b/clfs/units/acpid.service new file mode 100644 index 0000000..733edc9 --- /dev/null +++ b/clfs/units/acpid.service @@ -0,0 +1,7 @@ +[Unit] +Description=ACPI event daemon +Requires=acpid.socket + +[Service] +StandardInput=socket +ExecStart=/usr/sbin/acpid diff --git a/clfs/units/acpid.socket b/clfs/units/acpid.socket new file mode 100644 index 0000000..1e5365b --- /dev/null +++ b/clfs/units/acpid.socket @@ -0,0 +1,8 @@ +[Unit] +Description=ACPID Listen Socket + +[Socket] +ListenStream=/run/acpid.socket + +[Install] +WantedBy=sockets.target diff --git a/clfs/units/dhcpd.service b/clfs/units/dhcpd.service new file mode 100644 index 0000000..bacfc47 --- /dev/null +++ b/clfs/units/dhcpd.service @@ -0,0 +1,13 @@ +[Unit] +Description=ISC DHCP Server +After=network.target + +[Service] +Type=forking +PIDFile=/run/dhcpd.pid +EnvironmentFile=/etc/default/dhcpd +ExecStart=/usr/sbin/dhcpd -pf /run/dhcpd.pid -q $DHCPD_OPTS $DHCPD_INTERFACES +KillSignal=SIGINT + +[Install] +WantedBy=multi-user.target diff --git a/clfs/units/fcron.service b/clfs/units/fcron.service new file mode 100644 index 0000000..5fedc79 --- /dev/null +++ b/clfs/units/fcron.service @@ -0,0 +1,19 @@ +#systemd service configuration file for fcron installed from fcron 3.1.2 package +#2014-02-06 Add EnvironmentFile to use runtime options using $FCRON_OPTS + +[Unit] +Description=fcron periodical command scheduler +After=remote-fs.target syslog.target time-sync.target +Before=shutdown.target + +[Service] +Type=forking +EnvironmentFile=/etc/sysconfig/fcron +PIDFile=/var/run/fcron.pid +ExecStart=/usr/sbin/fcron $FCRON_OPTS +ExecReload=/bin/kill -USR1 $MAINPID +Restart=always +KillMode=process + +[Install] +WantedBy=multi-user.target diff --git a/clfs/units/httpd.service b/clfs/units/httpd.service new file mode 100644 index 0000000..bb02b59 --- /dev/null +++ b/clfs/units/httpd.service @@ -0,0 +1,15 @@ +[Unit] +Description=Apache Web Server +After=network.target remote-fs.target nss-lookup.target + +[Service] +Type=forking +PIDFile=/run/httpd/httpd.pid +ExecStart=/usr/sbin/apachectl start +ExecStop=/usr/sbin/apachectl graceful-stop +ExecReload=/usr/sbin/apachectl graceful +PrivateTmp=true +LimitNOFILE=infinity + +[Install] +WantedBy=multi-user.target diff --git a/clfs/units/kdm.service b/clfs/units/kdm.service new file mode 100644 index 0000000..c57aba9 --- /dev/null +++ b/clfs/units/kdm.service @@ -0,0 +1,9 @@ +[Unit] +Description=K Display Manager +After=systemd-user-sessions.service + +[Service] +ExecStart=/usr/bin/kdm -nodaemon + +[Install] +Alias=display-manager.service diff --git a/clfs/units/krb5-kadmind.service b/clfs/units/krb5-kadmind.service new file mode 100644 index 0000000..f038e7f --- /dev/null +++ b/clfs/units/krb5-kadmind.service @@ -0,0 +1,8 @@ +[Unit] +Description=Kerberos 5 Administration Server + +[Service] +ExecStart=/usr/sbin/kadmind -nofork + +[Install] +WantedBy=multi-user.target diff --git a/clfs/units/krb5-kdc.service b/clfs/units/krb5-kdc.service new file mode 100644 index 0000000..6ec93bb --- /dev/null +++ b/clfs/units/krb5-kdc.service @@ -0,0 +1,9 @@ +[Unit] +Description=Kerberos 5 KDC + +[Service] +ExecStart=/usr/sbin/krb5kdc -n +Restart=always + +[Install] +WantedBy=multi-user.target diff --git a/clfs/units/krb5-kpropd.service b/clfs/units/krb5-kpropd.service new file mode 100644 index 0000000..8bd335a --- /dev/null +++ b/clfs/units/krb5-kpropd.service @@ -0,0 +1,8 @@ +[Unit] +Description=Kerberos 5 Propagation Server + +[Service] +ExecStart=/usr/sbin/kpropd -S + +[Install] +WantedBy=multi-user.target diff --git a/clfs/units/mysqld.service b/clfs/units/mysqld.service new file mode 100644 index 0000000..3b81725 --- /dev/null +++ b/clfs/units/mysqld.service @@ -0,0 +1,13 @@ +[Unit] +Description=MySQL Server +After=network.target + +[Service] +User=mysql +Group=mysql +ExecStart=/usr/sbin/mysqld --pid-file=/run/mysqld/mysqld.pid +Restart=always +PrivateTmp=true + +[Install] +WantedBy=multi-user.target diff --git a/clfs/units/named.service b/clfs/units/named.service new file mode 100644 index 0000000..c21f13f --- /dev/null +++ b/clfs/units/named.service @@ -0,0 +1,11 @@ +[Unit] +Description=Internet domain name server +After=network.target + +[Service] +ExecStart=/usr/sbin/named -f -u named +ExecReload=/usr/sbin/rndc reload +ExecStop=/usr/sbin/rndc stop + +[Install] +WantedBy=multi-user.target diff --git a/clfs/units/nmbd.service b/clfs/units/nmbd.service new file mode 100644 index 0000000..a2e3a45 --- /dev/null +++ b/clfs/units/nmbd.service @@ -0,0 +1,13 @@ +[Unit] +Description=Samba NetBIOS name server +After=network.target + +[Service] +Type=forking +EnvironmentFile=/etc/default/samba +PIDFile=/run/samba/nmbd.pid +ExecStart=/usr/sbin/nmbd -D $NMBD_OPTS +ExecReload=/bin/kill -HUP $MAINPID + +[Install] +WantedBy=multi-user.target diff --git a/clfs/units/nscd.service b/clfs/units/nscd.service new file mode 100644 index 0000000..ff200a1 --- /dev/null +++ b/clfs/units/nscd.service @@ -0,0 +1,16 @@ +[Unit] +Description=Name Service Cache Daemon + +[Service] +Type=forking +ExecStart=/usr/sbin/nscd +ExecStop=/usr/sbin/nscd --shutdown +ExecReload=/usr/sbin/nscd -i passwd +ExecReload=/usr/sbin/nscd -i group +ExecReload=/usr/sbin/nscd -i hosts +ExecReload=/usr/sbin/nscd -i services +Restart=always +PIDFile=/run/nscd/nscd.pid + +[Install] +WantedBy=multi-user.target diff --git a/clfs/units/ntpd.service b/clfs/units/ntpd.service new file mode 100644 index 0000000..b8f06bc --- /dev/null +++ b/clfs/units/ntpd.service @@ -0,0 +1,13 @@ +[Unit] +Description=Network Time Protocol daemon +After=network.target nss-lookup.target + +[Service] +Type=forking +PrivateTmp=true +ExecStart=/usr/sbin/ntpd -g -u ntp:ntp +ControlGroup=cpu:/ + +[Install] +WantedBy=multi-user.target + diff --git a/clfs/units/postfix.service b/clfs/units/postfix.service new file mode 100644 index 0000000..e7d4cd2 --- /dev/null +++ b/clfs/units/postfix.service @@ -0,0 +1,14 @@ +[Unit] +Description=Postfix Mail Transport Agent +After=network.target + +[Service] +Type=forking +PIDFile=/var/spool/postfix/pid/master.pid +ExecStart=/usr/sbin/postfix start +ExecStop=/usr/sbin/postfix stop +ExecReload=/usr/sbin/postfix reload +Restart=always + +[Install] +WantedBy=multi-user.target diff --git a/clfs/units/postgresql.service b/clfs/units/postgresql.service new file mode 100644 index 0000000..7ce472f --- /dev/null +++ b/clfs/units/postgresql.service @@ -0,0 +1,25 @@ +[Unit] +Description=PostgreSQL database server +After=network.target + +[Service] +Type=forking +TimeoutSec=120 +User=postgres +Group=postgres + +Environment=PGROOT=/srv/pgsql + +SyslogIdentifier=postgres +PIDFile=${PGROOT}/data/postmaster.pid + +ExecStart= /usr/bin/pg_ctl -s -D ${PGROOT}/data start -w -t 120 +ExecReload=/usr/bin/pg_ctl -s -D ${PGROOT}/data reload +ExecStop= /usr/bin/pg_ctl -s -D ${PGROOT}/data stop -m fast + +# Due to PostgreSQL's use of shared memory, OOM killer is often overzealous in +# killing Postgres, so adjust it downward +OOMScoreAdjust=-200 + +[Install] +WantedBy=multi-user.target diff --git a/clfs/units/saslauthd.service b/clfs/units/saslauthd.service new file mode 100644 index 0000000..e7ef809 --- /dev/null +++ b/clfs/units/saslauthd.service @@ -0,0 +1,11 @@ +[Unit] +Description=Cyrus SASL authentication daemon + +[Service] +Type=forking +EnvironmentFile=/etc/default/saslauthd +ExecStart=/usr/sbin/saslauthd -a $MECHANISMS -n $THREADS $MECH_OPTIONS $SASLAUTHD_OPTS +PidFile=/run/saslauthd/saslauthd.pid + +[Install] +WantedBy=multi-user.target diff --git a/clfs/units/slapd.service b/clfs/units/slapd.service new file mode 100644 index 0000000..8244128 --- /dev/null +++ b/clfs/units/slapd.service @@ -0,0 +1,11 @@ +[Unit] +Description=OpenLDAP server daemon +After=network.target + +[Service] +Type=forking +EnvironmentFile=/etc/default/slapd +ExecStart=/usr/sbin/slapd -u ldap -g ldap $SLAPD_OPTS + +[Install] +WantedBy=multi-user.target diff --git a/clfs/units/smbd.service b/clfs/units/smbd.service new file mode 100644 index 0000000..2d6da9c --- /dev/null +++ b/clfs/units/smbd.service @@ -0,0 +1,13 @@ +[Unit] +Description=Samba SMB/CIFS server +After=network.target nmbd.service winbindd.service + +[Service] +Type=forking +EnvironmentFile=/etc/default/samba +PIDFile=/run/samba/smbd.pid +ExecStart=/usr/sbin/smbd -D $SMBD_OPTS +ExecReload=/bin/kill -HUP $MAINPID + +[Install] +WantedBy=multi-user.target diff --git a/clfs/units/smbd.socket b/clfs/units/smbd.socket new file mode 100644 index 0000000..833bf43 --- /dev/null +++ b/clfs/units/smbd.socket @@ -0,0 +1,9 @@ +[Unit] +Description=Samba SMB/CIFS server socket + +[Socket] +ListenStream=445 +Accept=yes + +[Install] +WantedBy=sockets.target diff --git a/clfs/units/smbdat.service b/clfs/units/smbdat.service new file mode 100644 index 0000000..4b9ab62 --- /dev/null +++ b/clfs/units/smbdat.service @@ -0,0 +1,10 @@ +[Unit] +Description=Samba SMB/CIFS server instance + +[Service] +Type=forking +EnvironmentFile=/etc/default/samba +PIDFile=/run/samba/smbd.pid +ExecStart=/usr/sbin/smbd -F $SMBD_OPTS +ExecReload=/bin/kill -HUP $MAINPID +StandardInput=socket diff --git a/clfs/units/sshd.service b/clfs/units/sshd.service new file mode 100644 index 0000000..e4d6c4f --- /dev/null +++ b/clfs/units/sshd.service @@ -0,0 +1,11 @@ +[Unit] +Description=OpenSSH Daemon + +[Service] +ExecStart=/usr/sbin/sshd -D +ExecReload=/bin/kill -HUP $MAINPID +KillMode=process +Restart=always + +[Install] +WantedBy=multi-user.target diff --git a/clfs/units/sshd.socket b/clfs/units/sshd.socket new file mode 100644 index 0000000..fd68407 --- /dev/null +++ b/clfs/units/sshd.socket @@ -0,0 +1,9 @@ +[Unit] +Conflicts=sshd.service + +[Socket] +ListenStream=22 +Accept=yes + +[Install] +WantedBy=sockets.target diff --git a/clfs/units/sshdat.service b/clfs/units/sshdat.service new file mode 100644 index 0000000..144b129 --- /dev/null +++ b/clfs/units/sshdat.service @@ -0,0 +1,7 @@ +[Unit] +Description=SSH Per-Connection Server + +[Service] +ExecStart=/usr/sbin/sshd -i +StandardInput=socket +StandardError=syslog diff --git a/clfs/units/svnserve.service b/clfs/units/svnserve.service new file mode 100644 index 0000000..ba2fcc3 --- /dev/null +++ b/clfs/units/svnserve.service @@ -0,0 +1,11 @@ +[Unit] +Description=Subversion protocol daemon +After=network.target + +[Service] +Type=forking +EnvironmentFile=/etc/default/svnserve +ExecStart=/usr/bin/svnserve --daemon --pid-file=/run/svnserve/svnserve.pid $SVNSERVE_OPTS + +[Install] +WantedBy=multi-user.target diff --git a/clfs/units/swat.socket b/clfs/units/swat.socket new file mode 100644 index 0000000..e703413 --- /dev/null +++ b/clfs/units/swat.socket @@ -0,0 +1,9 @@ +[Unit] +Description=SWAT Samba Web Admin Tool + +[Socket] +ListenStream=127.0.0.1:901 +Accept=true + +[Install] +WantedBy=sockets.target diff --git a/clfs/units/swatat.service b/clfs/units/swatat.service new file mode 100644 index 0000000..a036b2c --- /dev/null +++ b/clfs/units/swatat.service @@ -0,0 +1,7 @@ +[Unit] +Description=SWAT Samba Web Admin Tool +After=local-fs.target + +[Service] +ExecStart=/usr/sbin/swat +StandardInput=socket diff --git a/clfs/units/tor.service b/clfs/units/tor.service new file mode 100644 index 0000000..29adf92 --- /dev/null +++ b/clfs/units/tor.service @@ -0,0 +1,12 @@ +[Unit] +Description=Anonymizing Overlay Network +After=network.target + +[Service] +Type=forking +ExecStart=/usr/bin/tor +ExecReload=/bin/kill -HUP $MAINPID +KillSignal=SIGINT + +[Install] +WantedBy=multi-user.target diff --git a/clfs/units/winbindd.service b/clfs/units/winbindd.service new file mode 100644 index 0000000..e9de2ee --- /dev/null +++ b/clfs/units/winbindd.service @@ -0,0 +1,13 @@ +[Unit] +Description=Samba Winbind daemon +After=network.target nmbd.service + +[Service] +Type=forking +EnvironmentFile=/etc/default/samba +PIDFile=/run/samba/winbindd.pid +ExecStart=/usr/sbin/winbindd -D $WINBINDD_OPTS +ExecReload=/bin/kill -HUP $MAINPID + +[Install] +WantedBy=multi-user.target |