ssm-services/services/fsck

20 lines
312 B
Plaintext
Raw Normal View History

#!/usr/bin/env ssm
2013-09-28 23:32:39 +00:00
service_type='oneshot'
service_command=( /usr/bin/fsck -A -C -p )
2013-09-28 23:32:39 +00:00
pre_start() {
printf 'Remounting / as read-only...\n'
2013-09-28 23:32:39 +00:00
mount / -o remount,ro
}
2013-09-28 23:32:39 +00:00
start() {
printf 'Checking filesystems...\n'
super_start
}
2013-09-28 23:32:39 +00:00
post_start() {
printf 'Remounting / as read-write...\n'
2013-09-28 23:32:39 +00:00
mount / -o remount,rw
}