s6
Software
skarnet.org
The s6-setsid program
s6-setsid runs a program as session leader.
Interface
s6-setsid [ -I | -i ] prog...
- s6-setsid creates a new session if it is not a session leader, and becomes
session leader of this new session.
- It then executes into prog....
Options
- -i : strict. If s6-setsid is already a session leader, it will
exit 111 with an error message.
- -I : loose. If s6-setsid is already a session leader, it will
print a warning message, but exec into prog nonetheless. This is the
default.