Browse Source

* updated sid format documentation

git-svn-id: svn://svn.opensde.net/opensde/opensde/branches/sid@20150 10447126-35f2-4685-b0cf-6dd780d3921f
user/amery/sid
Alejandro Mery 18 years ago
parent
commit
c3b1a33978
1 changed files with 11 additions and 6 deletions
  1. +11
    -6
      doc/sid.txt

+ 11
- 6
doc/sid.txt

@ -2,17 +2,18 @@ general user space delimited list of usernames
general group space delimited list of groupnames
general mimetype space delimited list of mimetypes
general type type of sid file
- daemon run (stays)
- daemon run, !port (stays)
- tcp run, port (needs tcp-to-stdin/stdout help)
- config run? (no process stays)
general desc description to show when `title`
general conffile file to source before [common] if exist
general run file or function to run on start
general runmode how does this thing works (foreground/background)
- fg always foreground
- bg always background (OUTCH!)
- opt option dependent
- conf own configuration only (OUTCH!)
- opt runbgopt || runfgopt (option dependent)
- bg ! runbgopt && ! runfgopt always background (OUTCH!)
- fg always foreground
- block blocking, shall wait until it finishes
- conf own configuration only (OUTCH!)
general runopt arguments to pass always to $general_run
general runbgopt arguments to pass to $general_run when we want it to run on background (sysvinit style)
general runfgopt arguments to pass to $general_run when we want it to run on foreground (daemontools style)
@ -21,8 +22,12 @@ $(mimetype) program command line to execute, %s for filename
$(mimetype) extension space delimited list of extensions
sysvinit prio priority (0-99) for start/stop order
sysvinit runlevel X 1 2 3 4 5
sysvinit runlevel 1 2 3 4 5 (X is always assumed)
pre-conffile (raw) code block to execute before testing the conffile
common (raw) code block to execute after testing the conffile and before checking for the kind of action
pre-start (raw) code block to execute after start's title and before $run
start (raw) code block to execute to start/do the process/task
stop (raw) code block to execute to stop/undo the process/task
status (raw) code block to see the status of the process

Loading…
Cancel
Save