| Use Case | Command | Description |
|---|---|---|
| Start a service π’ | deb-systemd-invoke start myunit.service | Start the unit if policy-rc.d allows |
| Stop a service π΄ | deb-systemd-invoke stop myunit.service | Stop the unit, respecting policy |
| Restart a service π | deb-systemd-invoke restart myunit.service | Restart the unit if permitted |
| Start for user session π€ | deb-systemd-invoke --user start myunit.service | Start a userβscope unit |
deb-systemd-invoke - wrapper around systemctl, respecting policy-rc.d
deb-systemd-invoke [--user] start|stop|restart unit file ...
deb-systemd-invoke is a Debian-specific helper script which asks /usr/sbin/policy-rc.d before performing a systemctl call.
deb-systemd-invoke is intended to be used from maintscripts to start systemd unit files. It is specifically NOT intended to be used interactively by users. Instead, users should run systemd and use systemctl, or not bother about the systemd enabled state in case they are not running systemd.
Generated by phpman v4.9.29 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-21 07:08 @2600:1f28:365:80b0:e9a9:ac35:f5fe:ea62
CrawledBy CCBot/2.0 (https://commoncrawl.org/faq/)
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format