SuperScript::Software::service-config

The service-config program


Interface

  service-config user loguser dir server
where user, loguser, and dir are single arguments, and server is one or more arguments. The path dir must begin with a slash.

service-config creates the svscan-format service directory dir, with a subdirectory dir/env. It creates the file dir/run containing:

  #!/bin/sh
  exec 2>&1
  exec envdir dir/env 
server
When server consists of more than one argument, service-config writes a newline character between arguments.

If user is nonempty, then service-config writes the user id and group id of user to dir/env/UID and dir/env/GID, respectively.

If loguser is nonempty, then service-config arranges for the service to write logs as loguser in dir/log/main.