Invasive oneshot services now use spawn()

This commit is contained in:
2014-07-28 07:52:32 +04:00
parent 902f317440
commit 8e225fa577
13 changed files with 23 additions and 18 deletions

View File

@@ -1,5 +1,4 @@
#!/usr/bin/env watchman
# As of spark-rc 1.1.5, this script is deprecated
service_type='oneshot'
@@ -7,7 +6,7 @@ cfg_mounts+=( 'proc:proc:defaults:/proc' )
cfg_mounts+=( 'run:tmpfs:defaults:/run' )
cfg_mounts+=( 'sys:sysfs:defaults:/sys' )
start() {
spawn() {
for m in ${cfg_mounts[@]}; do
fs_dev=`echo "$m" | cut -d':' -f1`
fs_type=`echo "$m" | cut -d':' -f2`
@@ -22,8 +21,6 @@ start() {
}
done
touch "${cfg_rundir}/${service_name}.done"
return 0
}