ssm-services/init.d/fsck

17 lines
308 B
Plaintext
Raw Normal View History

2013-09-28 23:32:39 +00:00
#!/usr/bin/env watchman
2014-06-28 06:54:06 +00:00
service_command='/bin/fsck'
service_args='-A -C -p'
2013-09-28 23:32:39 +00:00
service_type='oneshot'
start() {
watchman.msg "Remounting / as read-only..."
mount / -o remount,ro
watchman.msg "Checking filesystems..."
2014-06-28 06:54:06 +00:00
watchman.start
2013-09-28 23:32:39 +00:00
watchman.msg "Remounting / as read-write..."
mount / -o remount,rw
}