How to use Systemd Service Generator
Generate a service unit for a supplied absolute executable, user and working directory. It does not install or execute the unit.
- Set Description.
- Set Executable.
- Set User.
- Set Directory.
- Run the tool, review the result and its stated limitations, then copy or download if needed.
Example & practical use
Generate a service unit for a supplied absolute executable, user and working directory. It does not install or execute the unit. The example below demonstrates Description; Executable; User; Directory.
Example input:
{
"description": "My service",
"executable": "/usr/bin/example",
"user": "coder",
"directory": "/srv/app"
}
Expected result (relevant fields):
"[Unit]\nDescription=My service\nAfter=network.target\n\n[Service]\nType=simple\nUser=coder\nWorkingDirectory=/srv/app\nExecStart=/usr/bin/example\nRestart=on-failure\nNoNewPrivileges=true\n\n[Install]\nWantedBy=multi-user.target\n"Features & result limitations
Generate a service unit for a supplied absolute executable, user and working directory. It does not install or execute the unit.
Frequently asked questions
What inputs does Systemd Service Generator accept?
Description; Executable; User; Directory
How should I interpret the Systemd Service Generator result?
Generate a service unit for a supplied absolute executable, user and working directory. It does not install or execute the unit.
Where does Systemd Service Generator process my data?
Inputs are processed locally in your browser. Submitted text is not sent to external services. A successful-run event increments an aggregate tool counter without your input.