From 33cea83d1b54b4c57ddc203c0cdf3c53775586bc Mon Sep 17 00:00:00 2001 From: fbt Date: Sat, 8 Aug 2015 19:38:56 +0300 Subject: [PATCH] sync --- rc.conf | 4 ++-- rc.in | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/rc.conf b/rc.conf index 518162a..9a0ad25 100644 --- a/rc.conf +++ b/rc.conf @@ -9,8 +9,8 @@ cfg_hostname='changeme' #cfg_timezone='Europe/Moscow' # Services -cfg_services+=( 'fsck' 'mount' 'systemd-udevd' 'sysctl' ) # Services that need tp be started in an order -cfg_services+=( '@lo.iface' ) # These start in parallel. +cfg_services+=( 'fsck' 'mount' 'sysctl' 'rsyslogd' ) # Services that need tp be started in an order +cfg_services+=( '@lo.iface' '@scron' '@sshd' ) # These start in parallel. cfg_services+=( @agetty-tty{2..6} ) # Comment this if your init starts something on the ttys itself. cfg_services+=( 'rc.local' ) # Traditionally, rc.local starts last. Technically here it doesn't. Not quite :) diff --git a/rc.in b/rc.in index 355ac9e..9ed5b20 100755 --- a/rc.in +++ b/rc.in @@ -142,10 +142,14 @@ rc.halt() { esac } +rc.sync() { + echo "Syncing disks." +} + rc.shutdown() { rc.services_stop rc.stop_everything - sync + rc.sync rc.unmount_everything rc.remount_root