Score:0

start a service only at specified run levels

za flag

I installed proftp service on my Ubuntu 20.04 system. I need it to be only started on run levels 3 and 5. Does using telinit <run-level> to change the run level and using systemctl enable proftp.service is the correct way to do it?

paladin avatar
kr flag
No, disable your service again and edit the service file. You want to add "service wanted by multi-user.target" (runlevel 3). After editing enable your service again. Read https://www.how2shout.com/linux/how-to-create-a-systemd-service-unit-file-in-linux/ and https://www.tecmint.com/change-runlevels-targets-in-systemd/ You can also "blacklist" targets for your service.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.