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'
@@ -8,7 +7,7 @@ cfg_mounts+=( '/dev/pts:devpts:noexec,nosuid,gid=5,mode=0620:/dev/pts' )
cfg_mounts+=( '/dev/mqueue:mqueue:noexec,nosuid,nodev:/dev/mqueue' )
cfg_mounts+=( 'tmpfs:tmpfs:defaults,mode=0777:/dev/shm' )
start() {
spawn() {
for m in ${cfg_mounts[@]}; do
fs_dev=`echo "$m" | cut -d':' -f1`
fs_type=`echo "$m" | cut -d':' -f2`