Package: runit
Version: 2.1.2-3
Severity: wishlist

Hi,

Should be there a way to make a 'run-once' service? Runsv has a -o option that
makes runsv run the ./run file once, but when it comes to runsvdir, it`s
useless.
Maybe it would be better to add a ./once file into service directory, then
check if it exists and run it if it is present?
Basically, this can be done just by few bits in runsv.c at the startservice
routine, line 268 :
if ( access( "./once", F_OK|X_OK ) != -1 ) { run[0] = "./once"; custom(s,
'o');}



-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 3.16.0-4-686-pae (SMP w/2 CPU cores)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages runit depends on:
ii  libc6  2.19-18

Versions of packages runit recommends:
ii  fgetty  0.6-5

Versions of packages runit suggests:
pn  socklog-run  <none>

-- debconf-show failed


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to