Browse Source

kek

Signed-off-by: fbt <fbt@fleshless.org>
master
Jack L. Frost 5 years ago
parent
commit
d85b1945e9
  1. 8
      conf.d/devfs-links
  2. 5
      init.d/acpid
  3. 5
      init.d/agetty
  4. 5
      init.d/chef-client
  5. 5
      init.d/chrony
  6. 8
      init.d/connmand
  7. 4
      init.d/cronie
  8. 5
      init.d/cupsd
  9. 18
      init.d/devfs-links
  10. 6
      init.d/fcgiwrap
  11. 9
      init.d/ferm
  12. 5
      init.d/haproxy
  13. 4
      init.d/haveged
  14. 6
      init.d/mariadb
  15. 5
      init.d/memcached
  16. 5
      init.d/mpd
  17. 10
      init.d/network
  18. 5
      init.d/ntp
  19. 4
      init.d/oidentd
  20. 5
      init.d/openntpd
  21. 6
      init.d/openvpn-server
  22. 5
      init.d/pamusb
  23. 5
      init.d/php-fpm
  24. 5
      init.d/preload
  25. 12
      init.d/privoxy
  26. 5
      init.d/scron
  27. 5
      init.d/syslog-ng
  28. 6
      init.d/teamviewerd
  29. 5
      init.d/vixie-cron
  30. 5
      init.d/wpa_supplicant
  31. 5
      init.d/xinetd
  32. 10
      init.d/znet
  33. 0
      services/README
  34. 4
      services/acpid
  35. 4
      services/agetty
  36. 0
      services/agetty-tty1
  37. 0
      services/agetty-tty2
  38. 0
      services/agetty-tty3
  39. 0
      services/agetty-tty4
  40. 0
      services/agetty-tty5
  41. 0
      services/agetty-tty6
  42. 3
      services/alsa
  43. 0
      services/atd
  44. 0
      services/binfmt-register
  45. 3
      services/bitlbee
  46. 0
      services/cgmanager
  47. 3
      services/chef-client
  48. 4
      services/chrony
  49. 0
      services/cjdroute
  50. 5
      services/connmand
  51. 3
      services/cronie
  52. 4
      services/cupsd
  53. 3
      services/dbus
  54. 3
      services/dhcpcd
  55. 4
      services/dnscrypt
  56. 4
      services/dnscrypt-backup
  57. 0
      services/docker
  58. 0
      services/dropbear
  59. 0
      services/eth0.iface
  60. 0
      services/eudev
  61. 5
      services/fcgiwrap
  62. 6
      services/ferm
  63. 0
      services/fsck
  64. 4
      services/haproxy
  65. 3
      services/haveged
  66. 3
      services/hostname
  67. 0
      services/hwdetect
  68. 0
      services/iptables
  69. 3
      services/isc-dhcpd
  70. 4
      services/kmscon
  71. 0
      services/kmscon-tty1
  72. 0
      services/kmscon-tty2
  73. 0
      services/kmscon-tty3
  74. 0
      services/kmscon-tty4
  75. 0
      services/kmscon-tty5
  76. 0
      services/kmscon-tty6
  77. 0
      services/libvirtd
  78. 3
      services/lo.iface
  79. 5
      services/mariadb
  80. 3
      services/mdev
  81. 3
      services/memcached
  82. 0
      services/motd
  83. 0
      services/mount
  84. 4
      services/mpd
  85. 0
      services/ngetty
  86. 0
      services/nginx
  87. 3
      services/nrpe
  88. 3
      services/ntp
  89. 3
      services/oidentd
  90. 3
      services/openntpd
  91. 3
      services/openvpn
  92. 0
      services/openvpn-example
  93. 4
      services/openvpn-server
  94. 4
      services/pamusb
  95. 3
      services/php-fpm
  96. 4
      services/preload
  97. 10
      services/privoxy
  98. 0
      services/prosody
  99. 0
      services/rc.local
  100. 3
      services/rsyslogd

8
conf.d/devfs-links

@ -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'
)

5
init.d/acpid

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

5
init.d/agetty

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

5
init.d/chef-client

@ -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 )

5
init.d/chrony

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

8
init.d/connmand

@ -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 )

4
init.d/cronie

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

5
init.d/cupsd

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

18
init.d/devfs-links

@ -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
}

6
init.d/fcgiwrap

@ -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 )

9
init.d/ferm

@ -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[@]}"
}

5
init.d/haproxy

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

4
init.d/haveged

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

6
init.d/mariadb

@ -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 )

5
init.d/memcached

@ -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 )

5
init.d/mpd

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

10
init.d/network

@ -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
}

5
init.d/ntp

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

4
init.d/oidentd

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

5
init.d/openntpd

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

6
init.d/openvpn-server

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

5
init.d/pamusb

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

5
init.d/php-fpm

@ -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 )

5
init.d/preload

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

12
init.d/privoxy

@ -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[@]}"
}

5
init.d/scron

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

5
init.d/syslog-ng

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

6
init.d/teamviewerd

@ -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 )

5
init.d/vixie-cron

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

5
init.d/wpa_supplicant

@ -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" )

5
init.d/xinetd

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

10
init.d/znet

@ -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
}

0
init.d/README → services/README

4
services/acpid

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

4
services/agetty

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

0
init.d/agetty-tty1 → services/agetty-tty1

0
init.d/agetty-tty2 → services/agetty-tty2

0
init.d/agetty-tty3 → services/agetty-tty3

0
init.d/agetty-tty4 → services/agetty-tty4

0
init.d/agetty-tty5 → services/agetty-tty5

0
init.d/agetty-tty6 → services/agetty-tty6

3
init.d/alsa → services/alsa

@ -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

0
init.d/atd → services/atd

0
init.d/binfmt-register → services/binfmt-register

3
init.d/bitlbee → services/bitlbee

@ -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 )

0
init.d/cgmanager → services/cgmanager

3
services/chef-client

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

4
services/chrony

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

0
init.d/cjdroute → services/cjdroute

5
services/connmand

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

3
services/cronie

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

4
services/cupsd

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

3
init.d/dbus → services/dbus

@ -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() {

3
init.d/dhcpcd → services/dhcpcd

@ -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 )

4
init.d/dnscrypt → services/dnscrypt

@ -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}"

4
init.d/dnscrypt-backup → services/dnscrypt-backup

@ -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}"

0
init.d/docker → services/docker

0
init.d/dropbear → services/dropbear

0
init.d/eth0.iface → services/eth0.iface

0
init.d/eudev → services/eudev

5
services/fcgiwrap

@ -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

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

0
init.d/fsck → services/fsck

4
services/haproxy

@ -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

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

3
init.d/hostname → services/hostname

@ -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" )

0
init.d/hwdetect → services/hwdetect

0
init.d/iptables → services/iptables

3
init.d/isc-dhcpd → services/isc-dhcpd

@ -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 )

4
init.d/kmscon → services/kmscon

@ -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"

0
init.d/kmscon-tty1 → services/kmscon-tty1

0
init.d/kmscon-tty2 → services/kmscon-tty2

0
init.d/kmscon-tty3 → services/kmscon-tty3

0
init.d/kmscon-tty4 → services/kmscon-tty4

0
init.d/kmscon-tty5 → services/kmscon-tty5

0
init.d/kmscon-tty6 → services/kmscon-tty6

0
init.d/libvirtd → services/libvirtd

3
init.d/lo.iface → services/lo.iface

@ -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

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

3
init.d/mdev → services/mdev

@ -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

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

0
init.d/motd → services/motd

0
init.d/mount → services/mount

4
services/mpd

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

0
init.d/ngetty → services/ngetty

0
init.d/nginx → services/nginx

3
init.d/nrpe → services/nrpe

@ -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

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

3
services/oidentd

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

3
services/openntpd

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

3
init.d/openvpn → services/openvpn

@ -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 )

0
init.d/openvpn-example → services/openvpn-example

4
services/openvpn-server

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

4
services/pamusb

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

3
services/php-fpm

@ -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

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

10
services/privoxy

@ -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"
}

0
init.d/prosody → services/prosody

0
init.d/rc.local → services/rc.local

3
init.d/rsyslogd → services/rsyslogd

@ -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 changed in this diff

Loading…
Cancel
Save