forked from Spark/ssm-services
15 lines
264 B
Plaintext
Executable File
15 lines
264 B
Plaintext
Executable File
#!/usr/bin/env watchman
|
|
|
|
service_type='oneshot'
|
|
|
|
start() {
|
|
watchman.msg "Remounting / as read-only..."
|
|
mount / -o remount,ro
|
|
|
|
watchman.msg "Checking filesystems..."
|
|
/usr/bin/fsck -A -C -p
|
|
|
|
watchman.msg "Remounting / as read-write..."
|
|
mount / -o remount,rw
|
|
}
|