forked from Spark/ssm-services
12
services/mount
Executable file
12
services/mount
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env ssm
|
||||
|
||||
service_type='oneshot'
|
||||
service_command=( /usr/bin/mount -a )
|
||||
|
||||
pre_start() {
|
||||
[[ -w / ]] || { mount -o remount,rw /; }
|
||||
}
|
||||
|
||||
post_start() {
|
||||
swapon -a
|
||||
}
|
Reference in New Issue
Block a user