How do I run this command as a service on startup?

How do I run the following command on startup as a service that can be stopped, started and restarted easily on Debian 9.4?

starman --listen localhost:10001 /home/jarle/dancer/medreg_prod/bin/app.psgi

1 Reply

This pretty much covers what you're trying to do - basically you turn the command into a shell script and have systemd start it.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct