ssm-services/services/fsck

16 lines
286 B
Plaintext
Raw Permalink 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
printf 'Checking filesystems...\n'
}
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
}