A
A
Alexey Kostyukhin2018-11-29 11:21:52
linux
Alexey Kostyukhin, 2018-11-29 11:21:52

How to add a service to startup in linux mint 17.3?

How can I add a service to autoload in linux mint? On other systems, this is easy. For example .
I want to run one program in the background, through a script. And I want to add this program to startup as a service.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
pfg21, 2018-11-29
@pfg21

write a script for systemd
for example.

/etc/systemd/system/3proxy.service
[Unit]
Description=Simple proxy (3proxy) service
After=network.target
[Service]
User=nobody
Group=nogroup
ExecStart=/usr/bin/proxy -l/var/log/1pfg/3proxy.log -4 -p10321
[Install]
WantedBy=multi-user.target

then reindex the scripts
sudo systemctl daemon-reload
then include the script in the launch
sudo systemctl enable 3proxy

Y
Yerlan Ibraev, 2018-11-29
@mad_nazgul

crontab?
<:o)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question