19
services/fsck
Executable file
19
services/fsck
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env ssm
|
||||
|
||||
service_type='oneshot'
|
||||
service_command=( /usr/bin/fsck -A -C -p )
|
||||
|
||||
pre_start() {
|
||||
printf 'Remounting / as read-only...\n'
|
||||
mount / -o remount,ro
|
||||
}
|
||||
|
||||
start() {
|
||||
printf 'Checking filesystems...\n'
|
||||
super_start
|
||||
}
|
||||
|
||||
post_start() {
|
||||
printf 'Remounting / as read-write...\n'
|
||||
mount / -o remount,rw
|
||||
}
|
Reference in New Issue
Block a user