Ticket #308: patch-for-r2267.patch
| File patch-for-r2267.patch, 16.0 KB (added by illth@…, 7 years ago) |
|---|
-
./daemon/bluetooth/rfcomm.ii
old new 1 1 2 2 service daemon/bluetooth/rfcomm { 3 need = system/initial system/mountroot daemon/bluetooth/hcid 4 exec start = @/usr/bin/rfcomm@ 5 exec_args start = -f /etc/bluetooth/rfcomm.conf bind all 6 exec stop = @/usr/bin/rfcomm@ 7 exec_args stop = -f /etc/bluetooth/rfcomm.conf release all 3 need = system/initial system/mountroot daemon/bluetooth/hcid; 4 exec start = @/usr/bin/rfcomm@; 5 exec_args start = -f /etc/bluetooth/rfcomm.conf bind all; 6 exec stop = @/usr/bin/rfcomm@; 7 exec_args stop = -f /etc/bluetooth/rfcomm.conf release all; 8 8 } -
./daemon/bluetooth/hid2hci.ii
old new 1 2 1 service daemon/bluetooth/hid2hci { 3 need = system/initial system/mountroot 4 exec start = @/usr/sbin/hid2hci@ 5 exec_args start = -0 6 exec stop = @/usr/sbin/hid2hci@ 7 exec_args stop = -1 8 2 need = system/initial system/mountroot; 3 exec start = @/usr/sbin/hid2hci@; 4 exec_args start = -0; 5 exec stop = @/usr/sbin/hid2hci@; 6 exec_args stop = -1; 9 7 } 10 -
./daemon/bluetooth/hciattach.ii
old new 1 2 1 service daemon/bluetooth/hciattach/* { 3 #*/ 4 need = system/initial system/mountroot daemon/bluetooth/hcid 5 exec start = @/usr/sbin/hciattach@ 6 exec_args start = ${NAME} 2 need = system/initial system/mountroot daemon/bluetooth/hcid; 3 exec start = @/usr/sbin/hciattach@; 4 exec_args start = ${NAME}; 7 5 } -
./daemon/mpd.ii
old new 2 2 daemon daemon/mpd { 3 3 need = system/alsasound system/mountfs; 4 4 exec daemon = @/usr/bin/mpd@; 5 exec_args daemon = --no-create-db /etc/mpd.conf; 5 exec_args daemon = --no-daemon --no-create-db /etc/mpd.conf; 6 # why not pid_file? the file isn't static. i think, there's no service at the 7 # moment, which has a dependency on mpd. 6 8 } -
./daemon/apache.ii
old new 1 1 2 2 daemon daemon/apache { 3 #ifd linspire4 need = system/initial system/mount_sys_fs net/lo;5 #elsed6 3 need = system/initial system/mountfs net/lo; 7 #endd8 9 4 use = daemon/sshd daemon/mysql daemon/postgres system/netmount; 10 5 require_network; 11 6 #virtual_use = net dns logger; 12 7 exec daemon = @/usr/sbin/apache@; 13 #daemon_args= -DPHP;8 exec_args daemon = -DPHP; 14 9 pid_file = /var/run/apache.pid; 15 10 } 16 11 -
./daemon/dnsmasq.ii
old new 1 1 daemon daemon/dnsmasq { 2 2 need = system/initial system/mountroot system/modules system/hostname; 3 3 use = system/static-modules system/coldplug; 4 stdall = /dev/null; 4 5 exec daemon = @/usr/sbin/dnsmasq@; 5 exec_args daemon = -d; 6 # pid_file = /var/run/dnsmasq.pid; 6 # exec_args daemon = -d; 7 pid_file = /var/run/dnsmasq.pid; 8 respawn = yes; 7 9 } 8 -
./daemon/postgres.ii
old new 1 1 service daemon/postgres/initdb { 2 2 need = system/initial system/mountfs net/lo; 3 3 script start = { 4 5 4 #ifd pingwinek 6 DATA="/srv/pgsql"5 DATA="/srv/pgsql" 7 6 #elsed 8 # I'm not sure about this location 9 DATA="/var/lib/postgresql/data" 7 # I'm not sure about this location 8 # DK: i'm sure. (system: gentoo) 9 DATA="/var/lib/postgresql/data" 10 10 #endd 11 if [ ! -f $DATA/PG_VERSION ] 12 then 13 if [ ! -d $DATA ] 14 then 15 mkdir -p $DATA 16 chown postgres.postgres $DATA 17 chmod go-rwx $DATA 18 fi 19 # Initialize the database 20 su - postgres -c "/usr/bin/initdb --pgdata=$DATA > /dev/null 2>&1" < /dev/null 11 21 12 if [ ! -f $DATA/PG_VERSION ] 13 then 14 echo -n "Initializing postgres database: " 15 if [ ! -d $DATA ] 16 then 17 mkdir -p $DATA 18 chown postgres.postgres $DATA 19 chmod go-rwx $DATA 20 fi 21 # Initialize the database 22 su - postgres -c "/usr/bin/initdb --pgdata=$DATA > /dev/null 2>&1" < /dev/null 22 exec test -f $DATA/PG_VERSION ] 23 # here was some output 24 }; 23 25 24 if [ -f $DATA/PG_VERSION ]; then 25 echo "OK" 26 exit 0 27 else 28 echo "Error" 29 exit 1 30 fi 31 exit 0 32 }; 33 34 script stop = { 35 }; 26 script stop = { 27 }; 36 28 } 37 29 38 30 service daemon/postgres { … … 53 45 #elsed 54 46 exec_args stop = -D/var/lib/postgresql/data/ -s -m fast stop; 55 47 #endd 48 respawn = yes; 56 49 } -
./daemon/squid.ii
old new 1 2 1 daemon daemon/squid { 3 2 need = system/initial system/mountfs net/lo; 4 3 require_network; 5 4 use = system/netmount; 6 5 #virtual_use = net dns logger 7 6 exec daemon = @/usr/sbin/squid@; 8 exec_args daemon = -N; 9 #pid_file = /var/run/squid.pid 7 # exec_args daemon = -N; 8 pid_file = /var/run/squid.pid; 9 respawn = yes; 10 10 } 11 -
./daemon/apache2.ii
old new 1 2 1 daemon daemon/apache2 { 3 #ifd linspire4 need = system/initial system/mount_sys_fs net/lo;5 #elsed6 2 need = system/initial system/mountfs net/lo; 7 #endd8 9 3 require_network; 10 4 use = daemon/sshd daemon/mysql daemon/postgres system/netmount; 11 5 #virtual_use = net dns logger; 12 6 exec daemon = @/usr/sbin/apache2@; 13 exec_args daemon = "-D PHP5 -k start";7 exec_args daemon = -D PHP5 -k start; 14 8 pid_file = /var/run/apache2.pid; 15 9 } 16 -
./daemon/fcron.ii
old new 1 1 daemon daemon/fcron { 2 2 need = system/initial system/mountroot net/lo; 3 3 exec daemon = @/usr/sbin/fcron@; 4 # daemon_args = 4 # exec_args daemon = ; 5 5 } -
./daemon/acpid.ii
old new 1 1 daemon daemon/acpid { 2 #ifd linspire3 need = system/mount_sys_fs system/modules;4 #elsed5 2 need = system/mountfs system/modules; 6 #endd7 8 3 use = system/discover system/coldplug; 9 4 #ifd debian 10 5 env_file = /etc/default/acpid; 11 6 #endd 12 7 script daemon = { 13 14 8 # Check for ACPI support on kernel side 15 9 [ -d /proc/acpi ] || exit 0 16 10 17 11 LIST=`/sbin/lsmod|awk '!/Module/ {print $1}'` 18 12 19 13 # Get list of available modules -
./daemon/rsyncd.ii
old new 1 2 1 daemon/rsyncd { 3 2 need = system/initial system/mountroot net/lo; 4 3 require_network; 5 exec daemon = @/usr/sbin/rsyncd@; 6 # daemon_args = --daemon 7 # pid_file = /var/run/rsyncd.pid 4 exec daemon = @/usr/sbin/rsync@; # there's no rsyncd 5 exec_args daemon = --daemon; # --no-detach # if no pid_file 6 pid_file = /var/run/rsyncd.pid; 7 respawn = yes; 8 8 } -
./daemon/mysql.ii
old new 3 3 script start = { 4 4 5 5 #ifd pingwinek 6 DATA="/srv/mysql"6 DATA="/srv/mysql" 7 7 #elsed 8 # I'm not sure about this location9 DATA="/var/lib/mysql"8 # I'm not sure about this location 9 DATA="/var/lib/mysql" 10 10 #endd 11 11 12 if [ ! -d $DATA/db/mysql ] 13 then 14 echo -n "Initializing mysql database: " 15 if [ ! -d $DATA ] 16 then 17 mkdir -p $DATA 18 chown mysql.mysql $DATA 19 chmod go-rwx $DATA 20 fi 21 su mysql -c "/usr/bin/mysql_install_db 2>&1 > /dev/null" 22 if [ -f $DATA/db/mysql/db.frm ]; then 23 echo "OK" 24 exit 0 25 else 26 echo "Error" 27 exit 1 28 fi 29 fi 30 exit 0 12 if [ ! -d $DATA/db/mysql ] 13 then 14 if [ ! -d $DATA ] 15 then 16 mkdir -p $DATA 17 chown mysql.mysql $DATA 18 chmod go-rwx $DATA 19 fi 20 su mysql -c "/usr/bin/mysql_install_db 2>&1 > /dev/null" 21 fi 22 exec [ -f $DATA/db/mysql/db.frm ] 31 23 }; 32 24 33 25 script stop = { … … 43 35 #ifd pingwinek 44 36 #pid_file = /srv/mysql/mysql.pid; 45 37 #elsed fedora 46 daemon_args= --defaults-file=/etc/my.cnf --pid-file=/var/run/mysqld/mysqld.pid38 exec_args daemon = --defaults-file=/etc/my.cnf --pid-file=/var/run/mysqld/mysqld.pid 47 39 #elsed 48 40 pid_file = /var/run/mysqld/mysqld.pid; 49 41 #endd -
./daemon/postfix.ii
old new 1 2 1 daemon daemon/postfix { 3 2 need = system/initial net/lo; 4 3 require_network; 5 exec daemon = @/usr/sbin/postfix@; 6 exec_args daemon = start; 7 pid_file = /var/spool/postfix/pid/master.pid; 4 exec daemon = @/usr/sbin/postfix@; 5 exec_args daemon = start; 6 pid_file = /var/spool/postfix/pid/master.pid; 7 exec kill = @/usr/sbin/postfix@; 8 exec_args kill = stop; 8 9 } 9 -
./daemon/entranced.ii
old new 2 2 need = system/initial system/mountfs system/hostname net/lo system/modules; 3 3 use = system/static-modules system/coldplug system/netmount; 4 4 exec daemon = @/usr/sbin/entranced@; 5 # daemon_args= -nodaemon;5 # exec_args daemon = -nodaemon; 6 6 pid_file = /var/run/entranced.pid; 7 respawn = yes; 7 8 } -
./daemon/dovecot.ii
old new 1 daemon daemon/dovecot { 2 use = system/static-modules system/coldplug system/netmount net/lo; 3 require_network; 4 exec daemon = @/usr/sbin/dovecot@; 5 # exec_args daemon = -F; 6 pid_file = /var/run/dovecot/master.pid; 7 } -
./daemon/vixie-cron.ii
old new 6 6 pid_file = /var/run/crond.pid; 7 7 #endd 8 8 exec daemon = @/usr/sbin/cron@; 9 # exec_args daemon = -n; 9 10 } -
./system/iptables.ii
old new 1 service system/iptables { 2 need = system/initial system/mountfs system/hostname; 3 require_network; 4 script start = { 5 exec @/sbin/iptables-restore@ -c < /var/lib/iptables/rules-save 6 }; 7 script stop = { 8 #exec @/sbin/iptables-save@ -c > /var/lib/iptables/rules-save 9 }; 10 } -
./system/splashy.ii
old new 1 1 #TODO: Test if we have sarted with fb before starting splashy 2 2 service system/splashy { 3 3 need = system/initial; 4 script start = { 5 test -x @/sbin/splashy@ || exit 0 6 7 spl_pidfile="/etc/splashy/splashy.pid" 8 spl_fifo="/etc/splashy/splashy.fifo" 9 if [ -r "/etc/default/splashy" ]; then 10 . /etc/default/splashy 11 else 12 echo "WARN: Missing /etc/default/splashy. Falling back to defaults $spl_fifo $spl_pidfile" 13 fi 14 15 16 if [ -r "/etc/init.d/splashy-functions.sh" ]; then 17 . /etc/init.d/splashy-functions.sh 18 else 19 echo "WARN: Missing /etc/init.d/splashy-functions.sh. Progressbar will not function correctly" 20 fi 4 script start = { 5 test -x @/sbin/splashy@ || exit 0 21 6 22 SPL_MSG="Starting $NAME boot sequence" 7 spl_pidfile="/etc/splashy/splashy.pid" 8 spl_fifo="/etc/splashy/splashy.fifo" 9 if [ -r "/etc/default/splashy" ]; then 10 . /etc/default/splashy 11 else 12 echo "WARN: Missing /etc/default/splashy. Falling back to defaults $spl_fifo $spl_pidfile" 13 fi 14 15 if [ -r "/etc/init.d/splashy-functions.sh" ]; then 16 . /etc/init.d/splashy-functions.sh 17 else 18 echo "WARN: Missing /etc/init.d/splashy-functions.sh. Progressbar will not function correctly" 19 fi 23 20 24 @start-stop-daemon@ --start --quiet --pidfile $spl_pidfile \ 25 --exec @/sbin/splashy@ -- boot 2> /dev/null 21 SPL_MSG="Starting $NAME boot sequence" 26 22 27 @ngc@ -S "splashy,boot" 23 @start-stop-daemon@ --start --quiet --pidfile $spl_pidfile \ 24 --exec @/sbin/splashy@ -- boot 2> /dev/null 28 25 29 }; 26 @ngc@ -S "splashy,boot" 27 }; 30 28 31 29 #the stop script is called on shutdown 32 30 #it will start splashy again to show the "shutdown complete" progress bar 33 script stop = { 34 test -x @/sbin/splashy@ || exit 0 35 36 spl_pidfile="/etc/splashy/splashy.pid" 37 spl_fifo="/etc/splashy/splashy.fifo" 38 if [ -r "/etc/default/splashy" ]; then 39 . /etc/default/splashy 40 else 41 echo "WARN: Missing /etc/default/splashy. Falling back to defaults $spl_fifo $spl_pidfile" 42 fi 43 31 script stop = { 32 test -x @/sbin/splashy@ || exit 0 44 33 45 if [ -r "/etc/init.d/splashy-functions.sh" ]; then 46 . /etc/init.d/splashy-functions.sh 47 else 48 echo "WARN: Missing /etc/init.d/splashy-functions.sh. Progressbar will not function correctly" 49 fi 34 spl_pidfile="/etc/splashy/splashy.pid" 35 spl_fifo="/etc/splashy/splashy.fifo" 36 if [ -r "/etc/default/splashy" ]; then 37 . /etc/default/splashy 38 else 39 echo "WARN: Missing /etc/default/splashy. Falling back to defaults $spl_fifo $spl_pidfile" 40 fi 41 42 if [ -r "/etc/init.d/splashy-functions.sh" ]; then 43 . /etc/init.d/splashy-functions.sh 44 else 45 echo "WARN: Missing /etc/init.d/splashy-functions.sh. Progressbar will not function correctly" 46 fi 50 47 51 SPL_MSG="Starting $NAME shutdown sequence"48 SPL_MSG="Starting $NAME shutdown sequence" 52 49 53 @start-stop-daemon@ --start --quiet --pidfile $spl_pidfile \54 --exec $DAEMON -- boot 2> /dev/null50 @start-stop-daemon@ --start --quiet --pidfile $spl_pidfile \ 51 --exec $DAEMON -- boot 2> /dev/null 55 52 56 @ngc@ -S "splashy,shutdown" 57 58 }; 53 exec @ngc@ -S "splashy,shutdown" 54 }; 59 55 } 60 56 61 57 service system/splashy/chvt { … … 69 65 done 70 66 [ "${x_vt}" -gt 0 ] 2> /dev/null 71 67 [ "$?" -gt 0 ] && exit 0 72 @/usr/bin/chvt@ ${x_vt}68 exec @/usr/bin/chvt@ ${x_vt} 73 69 } 70 #script stop = { 71 #if [ -r "/etc/default/splashy" ]; then 72 #. /etc/default/splashy 73 #else 74 #echo "WARN: Missing /etc/default/splashy. Falling back to defaults $spl_fifo $spl_pidfile" 75 #fi 76 #splashy_cmd_send "exit" 77 exec #@ngc@ -S "splashy,shutdown" 78 #} 74 79 } 75 76 #stop {77 #78 # if [ -r "/etc/default/splashy" ]; then79 # . /etc/default/splashy80 # else81 # echo "WARN: Missing /etc/default/splashy. Falling back to defaults $spl_fifo $spl_pidfile"82 # fi83 #84 # splashy_cmd_send "exit"85 # @ngc@ -S "splashy,shutdown"86 #}87 88 89 -
./system/audit.ii
old new 3 3 exec start = @/etc/init.d/auditd@; 4 4 exec_args start = start; 5 5 exec stop = @/etc/init.d/auditd@; 6 stop_args= stop;6 exec_args stop = stop; 7 7 } -
./debug/pidfile-daemon.ii
old new 1 1 daemon debug/pidfile-daemon { 2 2 respawn = no; 3 daemon = @/bin/sh@;4 daemon_args= /etc/initng/debug/pidfile-daemon.sh;3 exec daemon = @/bin/sh@; 4 exec_args daemon = /etc/initng/debug/pidfile-daemon.sh; 5 5 pid_file = /tmp/initng-pidfile-debug.pid; 6 6 } -
./debug/bug197.ii
old new 1 1 service debug/bug197/tty1 { 2 exec start = /bin/echo;3 exec_args start = "Here should be tty1 - but it isn't!" ;2 exec start = /bin/echo 3 exec_args start = "Here should be tty1 - but it isn't!" 4 4 } 5 5 6 6 service debug/bug197/* { 7 exec start = /bin/echo;8 exec_args start = " the common ${NAME}" ;7 exec start = /bin/echo 8 exec_args start = " the common ${NAME}" 9 9 }
