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