I have a service that starts at boot, but I want to control it manually. Everywhere I go it says sudo systemctl disable service
should do what I need, but it seems to remove the service entirely so I can't start it manually afterwards:
$ sudo systemctl disable service
Removed /etc/systemd/system/multi-user.target.wants/service.service.
Removed /etc/systemd/system/service.service.
$ sudo systemctl start service
Failed to start service.service: Unit service.service not found
I want to remove it from autostart but still be able to start it when I want. What am I missing?
What is the output of
systemctl cat
Before disabling it:
# /etc/systemd/system/service.service
[Unit]
Description=Service Name
[Service]
Type=simple
ExecStart=/usr/service/service <username>
Restart=on-failure
[Install]
WantedBy=multi-user.target
service.service.
? Where is located that service file?systemctl cat service.service
?/etc/systemd/system/service.service.