M
M
Microp2016-05-30 12:53:21
linux
Microp, 2016-05-30 12:53:21

Deploy a python console application as a unix service?

Tell me how to deploy an application to a service for a unix system such as ubuntu?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
rino906, 2016-05-30
@Microp

As answered above via systemd, for example:
[Unit]
Description=PowerDNS-Admin
After=network.target
[Service]
Type=simple
User=poweradmin
Group=poweradmin
ExecStart=/opt/powerdns-admin/run.py
WorkingDirectory=/opt /powerdns-admin
Environment="PATH=/opt/powerdns-admin"
[Install]
WantedBy=multi-user.target
https://github.com/ngoduykhanh/PowerDNS-Admin/wiki...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question