Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
Jack L. Frost 2017-12-10 20:44:17 +03:00
parent e6f85aa437
commit d85b1945e9
115 changed files with 132 additions and 238 deletions

View File

@ -1,8 +0,0 @@
# Config for devfs-links
cfg_links=(
'/proc/self/fd;/dev/fd'
'/proc/self/fd/0;/dev/stdin'
'/proc/self/fd/1;/dev/stdout'
'/proc/self/fd/2;/dev/stderr'
)

View File

@ -1,5 +0,0 @@
#!/usr/bin/env ssm
service_respawn='true'
service_command='/usr/bin/acpid'
service_args=( -f )

View File

@ -1,5 +0,0 @@
#!/usr/bin/env ssm
service_respawn='true'
service_command='/usr/bin/agetty'
service_args=( 38400 "${service_name##*-}" linux )

View File

@ -1,5 +0,0 @@
#!/usr/bin/env ssm
#service_respawn=true
service_command='/usr/bin/chef-client'
service_args=( -i 600 -s 3 -l info )

View File

@ -1,5 +0,0 @@
#!/usr/bin/env ssm
#service_respawn='true'
service_command='/usr/bin/chronyd'
service_args=( -u chrony )

View File

@ -1,8 +0,0 @@
#!/usr/bin/env ssm
# Author: Alad Wenter
depends dbus || return 1
#service_respawn='true'
service_command='/usr/bin/connmand'
service_args=( -n )

View File

@ -1,4 +0,0 @@
#!/usr/bin/env ssm
service_command='/bin/crond'
service_args=( -n )

View File

@ -1,5 +0,0 @@
#!/usr/bin/env ssm
#service_respawn='true'
service_command='/usr/bin/cupsd'
service_args=( -f )

View File

@ -1,18 +0,0 @@
#!/usr/bin/env ssm
# This is a script to set up the links in /dev in absence of e?(u|s?m)dev.
service_type='oneshot'
# Config moved to conf.d
spawn() {
for l in "${cfg_links[@]}"; do
IFS=';' read dest link <<< "$l"
[[ -e "$link" ]] || {
[[ -e "$dest" ]] && {
ln -s "$dest" "$link"
}
}
done
}

View File

@ -1,6 +0,0 @@
#!/usr/bin/env ssm
# The configuration is in conf.d.
#service_respawn='true'
service_command='/usr/bin/spawn-fcgi'
service_args=( -s "$cfg_socket" -P "$service_pidfile" -u "$cfg_user" -g "$cfg_group" -- /usr/bin/fcgiwrap )

View File

@ -1,9 +0,0 @@
#!/usr/bin/env ssm
service_type='oneshot'
service_command='/usr/bin/ferm'
service_args=( /etc/ferm.conf )
reload() {
"$service_command" "${service_args[@]}"
}

View File

@ -1,5 +0,0 @@
#!/usr/bin/env ssm
#service_respawn=true
service_command='/usr/bin/haproxy'
service_args=( -db -f /etc/haproxy/haproxy.cfg )

View File

@ -1,4 +0,0 @@
#!/usr/bin/env ssm
service_command=/usr/bin/haveged
service_args=( -F -w 1024 -v 1 )

View File

@ -1,6 +0,0 @@
#!/usr/bin/env ssm
#service_respawn='true'
service_workdir='/usr'
service_command='/usr/bin/mysqld_safe'
service_args=( --datadir=/var/lib/mysql )

View File

@ -1,5 +0,0 @@
#!/usr/bin/env ssm
#service_respawn=true
service_command='/usr/bin/memcached'
service_args=( -m 64 -p 11211 -u nobody -l 127.0.0.1 )

View File

@ -1,5 +0,0 @@
#!/usr/bin/env ssm
#service_respawn=true
service_command='/usr/bin/mpd'
service_args=( --no-daemon )

View File

@ -1,10 +0,0 @@
#!/usr/bin/env ssm
service_type='oneshot'
service_command=( /usr/bin/znet -d up )
ifaces=( 'eth0' 'warp' )
pre_stop() {
"$service_command" "${service_args[@]}" down
}

View File

@ -1,5 +0,0 @@
#!/usr/bin/env ssm
#service_respawn='true'
service_command='/usr/bin/ntpd'
service_args=( -n )

View File

@ -1,4 +0,0 @@
#!/usr/bin/env ssm
service_command='/usr/bin/oidentd'
service_args=( -i )

View File

@ -1,5 +0,0 @@
#!/usr/bin/env ssm
#service_respawn='true'
service_command='/usr/bin/ntpd'
service_args=( -d )

View File

@ -1,6 +0,0 @@
#!/usr/bin/env ssm
service_respawn='true'
service_command="/usr/sbin/openvpn"
service_workdir="/etc/openvpn"
service_args=( server.conf )

View File

@ -1,5 +0,0 @@
#!/usr/bin/env ssm
service_type='oneshot'
service_command='/usr/bin/mkdir'
service_args=( -p /run/lock )

View File

@ -1,5 +0,0 @@
#!/usr/bin/env ssm
#service_respawn='true'
service_command='/usr/bin/php-fpm'
service_args=( -F --fpm-config /etc/php/php-fpm.conf -c /etc/php/php.ini )

View File

@ -1,5 +0,0 @@
#!/usr/bin/env ssm
#service_respawn='true'
service_command='/usr/bin/preload'
service_args=( -f )

View File

@ -1,12 +0,0 @@
#!/usr/bin/env ssm
privoxy_username='privoxy'
privoxy_configfile='/etc/privoxy/config'
#service_respawn='true'
service_command='/usr/bin/privoxy'
service_args=( --no-daemon --user "$privoxy_username" "$privoxy_configfile" )
pre_restart() {
"$service_command" --config-test "${service_args[@]}"
}

View File

@ -1,5 +0,0 @@
#!/usr/bin/env ssm
#service_respawn='true'
service_command='/usr/bin/crond'
service_args=( -n )

View File

@ -1,5 +0,0 @@
#!/usr/bin/env ssm
#service_respawn=true
service_command='/usr/bin/syslog-ng'
service_args=( -F )

View File

@ -1,6 +0,0 @@
#!/usr/bin/env ssm
#service_respawn=true
service_pidfile='/run/teamviewerd.pid'
service_command='/opt/teamviewer8/tv_bin/teamviewerd'
service_args=( -d )

View File

@ -1,5 +0,0 @@
#!/usr/bin/env ssm
#service_respawn='true'
service_command='/usr/bin/crond'
service_args=( -f )

View File

@ -1,5 +0,0 @@
#!/usr/bin/env ssm
service_command='/usr/bin/wpa_supplicant'
service_config='/etc/wpa_supplicant/wpa_supplicant.conf'
service_args=( -i "${service_name##*-}" -c "$service_config" )

View File

@ -1,5 +0,0 @@
#!/usr/bin/env ssm
#service_respawn=true
service_command='/usr/bin/xinetd'
service_args=( -dontfork )

View File

@ -1,10 +0,0 @@
#!/usr/bin/env ssm
service_type='oneshot'
service_command=( /usr/bin/znet -d up )
ifaces=( 'eth0' 'warp' )
pre_stop() {
"$service_command" "${service_args[@]}" down
}

4
services/acpid Executable file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env ssm
service_respawn='true'
service_command=( /usr/bin/acpid -f )

4
services/agetty Executable file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env ssm
service_respawn='true'
service_command=( /usr/bin/agetty 38400 "${service_name##*-}" linux )

View File

@ -1,8 +1,7 @@
#!/usr/bin/env ssm
#service_respawn='true'
service_command='/usr/bin/alsactl'
service_args=( rdaemon )
service_command=( /usr/bin/alsactl rdaemon )
stop() {
"$service_command" kill save_and_quit

View File

@ -3,5 +3,4 @@
# Modify it for your setup.
#service_respawn=true
service_command='/usr/bin/bitlbee'
service_args=( -n )
service_command=( /usr/bin/bitlbee -n )

3
services/chef-client Executable file
View File

@ -0,0 +1,3 @@
#!/usr/bin/env ssm
service_command=( /usr/bin/chef-client -i 600 -s 3 -l info )

4
services/chrony Executable file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env ssm
#service_respawn='true'
service_command=( /usr/bin/chronyd -u chrony )

5
services/connmand Executable file
View File

@ -0,0 +1,5 @@
#!/usr/bin/env ssm
# Author: Alad Wenter
service_depends=( dbus )
service_command=( /usr/bin/connmand -n )

3
services/cronie Executable file
View File

@ -0,0 +1,3 @@
#!/usr/bin/env ssm
service_command=( /bin/crond -n )

4
services/cupsd Executable file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env ssm
#service_respawn='true'
service_command=( /usr/bin/cupsd -f )

View File

@ -1,8 +1,7 @@
#!/usr/bin/env ssm
#service_respawn=true
service_command='/usr/bin/dbus-daemon'
service_args=( --system --nofork )
service_command=( /usr/bin/dbus-daemon --system --nofork )
service_tmpfiles=( '/run/dbus:dir' )
pre_start() {

View File

@ -2,5 +2,4 @@
# dhcp client daemon initscript
#service_respawn=true
service_command='/usr/bin/dhcpcd'
service_args=( -B )
service_command=( /usr/bin/dhcpcd -B )

View File

@ -4,8 +4,8 @@
depends dnscrypt-backup
#service_respawn='true'
service_command='/usr/bin/dnscrypt-proxy'
service_args=(
service_command=(
'/usr/bin/dnscrypt-proxy'
"--local-address=${local_ip}:${local_port}"
"--resolver-address=${resolver_ip}:${resolver_port}"
"--provider-name=${provider_name}"

View File

@ -1,8 +1,8 @@
#!/usr/bin/env ssm
#service_respawn='true'
service_command='/usr/bin/dnscrypt-proxy'
service_args=(
service_command=(
'/usr/bin/dnscrypt-proxy'
"--local-address=${local_ip}:${local_port}"
"--resolver-address=${resolver_ip}:${resolver_port}"
"--provider-name=${provider_name}"

5
services/fcgiwrap Executable file
View File

@ -0,0 +1,5 @@
#!/usr/bin/env ssm
# The configuration is in conf.d.
#service_respawn='true'
service_command=( /usr/bin/spawn-fcgi -s "$cfg_socket" -P "$service_pidfile" -u "$cfg_user" -g "$cfg_group" -- /usr/bin/fcgiwrap )

6
services/ferm Executable file
View File

@ -0,0 +1,6 @@
#!/usr/bin/env ssm
service_type='oneshot'
service_command=( /usr/bin/ferm /etc/ferm.conf )
reload() { "${service_command[@]}"; }

4
services/haproxy Executable file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env ssm
#service_respawn=true
service_command=( /usr/bin/haproxy -db -f /etc/haproxy/haproxy.cfg )

3
services/haveged Executable file
View File

@ -0,0 +1,3 @@
#!/usr/bin/env ssm
service_command=( /usr/bin/haveged -F -w 1024 -v 1 )

View File

@ -8,5 +8,4 @@ fi
[[ "$cfg_hostname" ]] || { cfg_hostname='localhost'; }
service_type='oneshot'
service_command='/usr/bin/hostname'
service_args=( "$cfg_hostname" )
service_command=( /usr/bin/hostname "$cfg_hostname" )

View File

@ -2,5 +2,4 @@
# dhcp client daemon initscript
#service_respawn=true
service_command='/usr/sbin/dhcpd'
service_args=( -f )
service_command=( /usr/sbin/dhcpd -f )

View File

@ -3,8 +3,8 @@
tty="${service_name##*-}"
service_respawn='true'
service_command='/usr/bin/kmscon'
service_args=(
service_command=(
'/usr/bin/kmscon'
--vt "$tty"
--hwaccel --drm
--font-name "$kmscon_font_name"

View File

@ -3,8 +3,7 @@
cfg_iface="${service_name%%.*}"
service_type='oneshot'
service_command='/usr/bin/ip'
service_args=( link set "$cfg_iface" up)
service_command=( /usr/bin/ip link set "$cfg_iface" up )
ready() {
local iface="$1" timer='0' timeout='6'

5
services/mariadb Executable file
View File

@ -0,0 +1,5 @@
#!/usr/bin/env ssm
#service_respawn='true'
service_workdir='/usr'
service_command=( /usr/bin/mysqld_safe --datadir=/var/lib/mysql )

View File

@ -1,8 +1,7 @@
#!/usr/bin/env ssm
service_type='oneshot'
service_command='/usr/bin/mdev'
service_args=( -s )
service_command=( /usr/bin/mdev -s )
post_start() {
echo "Enabling hotplug..."

3
services/memcached Executable file
View File

@ -0,0 +1,3 @@
#!/usr/bin/env ssm
service_command=( /usr/bin/memcached -m 64 -p 11211 -u nobody -l 127.0.0.1 )

4
services/mpd Executable file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env ssm
#service_respawn=true
service_command=( /usr/bin/mpd --no-daemon )

View File

@ -3,6 +3,5 @@
cfg_nrpe_config='/etc/nrpe/nrpe.cfg'
#service_respawn=true
service_command='/usr/bin/nrpe'
service_command=( /usr/bin/nrpe -c "$cfg_nrpe_config" -d )
service_pidfile='/run/nrpe.pid'
service_args=( -c "$cfg_nrpe_config" -d )

3
services/ntp Executable file
View File

@ -0,0 +1,3 @@
#!/usr/bin/env ssm
service_command=( /usr/bin/ntpd -n )

3
services/oidentd Executable file
View File

@ -0,0 +1,3 @@
#!/usr/bin/env ssm
service_command=( /usr/bin/oidentd -i )

3
services/openntpd Executable file
View File

@ -0,0 +1,3 @@
#!/usr/bin/env ssm
service_command=( /usr/bin/ntpd -d )

View File

@ -3,6 +3,5 @@
cfg_ovpn_instance="${service_name##*-}"
service_respawn='true'
service_command="/usr/bin/openvpn"
service_command=( /usr/bin/openvpn client.cfg )
service_workdir="/etc/openvpn/$cfg_ovpn_instance"
service_args=( client.cfg )

4
services/openvpn-server Executable file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env ssm
service_workdir="/etc/openvpn"
service_command=( /usr/sbin/openvpn server.conf )

4
services/pamusb Executable file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env ssm
service_type='oneshot'
service_command=( /usr/bin/mkdir -p /run/lock )

3
services/php-fpm Executable file
View File

@ -0,0 +1,3 @@
#!/usr/bin/env ssm
service_command=( /usr/bin/php-fpm -F --fpm-config /etc/php/php-fpm.conf -c /etc/php/php.ini )

4
services/preload Executable file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env ssm
#service_respawn='true'
service_command=( /usr/bin/preload -f )

10
services/privoxy Executable file
View File

@ -0,0 +1,10 @@
#!/usr/bin/env ssm
privoxy_username='privoxy'
privoxy_configfile='/etc/privoxy/config'
service_command=( /usr/bin/privoxy --no-daemon --user "$privoxy_username" "$privoxy_configfile" )
pre_restart() {
"$service_command" --config-test "$privoxy_configfile"
}

View File

@ -2,5 +2,4 @@
# Author: Alad Wenter
#service_respawn=true
service_command='/usr/bin/rsyslogd'
service_args=( -n )
service_command=( /usr/bin/rsyslogd -n )

Some files were not shown because too many files have changed in this diff Show More