![]() | :: | Software | :: | service-config |
service-config user loguser dir serverwhere 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/envWhen server consists of more than one argument, service-config writes a newline character between arguments.
server
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.