![]() | :: | Software | :: | service-config |
svscan-config loguser dir svscandirwhere loguser, dir, and svscandir are single arguments. The paths dir and svscandir must begin with a slash.
svscan-config invokes service-config to create and configure a service running svscan in the directory svscandir. The server writes logs as loguser if loguser is nonempty.
Why run a copy of svscan under svscan? To support testing of new services. First configure one instance of svscan per the daemontools installation procedure, then use svscan-config to create a second instance, running it under the first, and working in the directory /service2. While developing services, install them in /service2. Move services from /service2 to /service only after they become stable.
Running immature services under a supervised svscan makes it easier to accommodate changes that sometimes occur, for example, adding or removing logging from a previously-installed service. In such instances one may need to restart svscan.