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