From 9eaeb20880e76808830af6402b0d9124e36df241 Mon Sep 17 00:00:00 2001 From: fbt Date: Wed, 23 Jul 2014 23:59:24 +0400 Subject: [PATCH] ok I really need a makefile for this. killall5 in sysv and ubase are different --- bin/rc | 4 ++-- etc/rc.conf | 8 +++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/bin/rc b/bin/rc index 789eef0..bed4312 100755 --- a/bin/rc +++ b/bin/rc @@ -84,10 +84,10 @@ rc.services_stop() { rc.stop_everything() { echo "Politely asking all processes to shut down..." - killall5 -s 15; sleep 3 + killall5 -15; sleep 3 echo "Killing the remaning ones..." - killall5 -s 9 + killall5 -9 } rc.unmount_everything() { diff --git a/etc/rc.conf b/etc/rc.conf index bc0eb8a..39a045f 100644 --- a/etc/rc.conf +++ b/etc/rc.conf @@ -5,9 +5,11 @@ export PATH='/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin' cfg_hostname='changeme' # Services -cfg_services+=( 'fsck' 'mount' 'systemd-udevd' 'sysctl' 'rc.local' ) -cfg_services+=( agetty-tty{2..6} ) # Comment this if your init starts something on the ttys itself -cfg_services+=( '@crond' '@network' '@dbus' '@alsa' ) # These start in parallel +cfg_services+=( 'fsck' 'mount' 'systemd-udevd' 'sysctl' ) # Services that need tp be started in an order +cfg_services+=( agetty-tty{2..6} ) # Comment this if your init starts something on the ttys itself. +cfg_services+=( '@crond' '@network' '@dbus' '@alsa' ) # These start in parallel. + +cfg_services+=( 'rc.local' ) # Traditionally, rc.local starts last. cfg_modules=( ) # Add modules you want to be loaded at boot time here