menu

Recent questions tagged systemd

2 votes
1 answer
Auto-run target in systemd? Good afternoon, colleagues, please help with a solution to the problem. There is a certain number of units, they start on their own, but there are some that can not, for ...
by alegkonin
asked Sep 22, 2021
1 vote
2 answers
How to write the systemd service with iptables as correctly as possible? I need to run OpenVPN on a non-standard port. The OpenVPN distribution does not imply this, you need to write your own service for systemd. In the distribution or in ma ...
by 776166
asked Sep 21, 2021
1 vote
1 answer
How can I speed up a gunicorn restart in systemd? There is a corporate site with flask + gunicorn, which has a chat room with socket.io. And this is how it runs in systemd UnitDescription=Web App gunicornAfter=network ...
by pcdesign
asked Mar 29, 2021
1 vote
2 answers
How do I fix the long shutdown (reboot) in ubuntu 18? After sending the server to restart, long shuts down the server (about 3 minutes), then goes to normal boot. Before shutdown/reboot Aug 16 20:34:35 example systemd: ...
by romanwb
asked Mar 6, 2021
2 votes
1 answer
How do I correctly upload my project to a configured debian server for django? I configured a server for Django project, created a startup project, but it is empty, then set up mine on the local machine, trying to upload to the server via git, but ...
by yavis23
asked Feb 23, 2021
4 votes
1 answer
How can I access the I/O streams of a daemon in linux? My program has this structure: def UserInterface(): while(True): print("hello") tmp = input() ...def payload(): while(True): #Something ...
by DVoropaev
asked Feb 10, 2021
1 vote
1 answer
image
Automount with rights? The crux of the matter: there is a server with 1C on linux. There is a file storage (separate machine). There is a 1C workflow configuration on the first server, which s ...
by itsec
asked Feb 5, 2021
1 vote
2 answers
How do I replace systemd in Debian? What can replace SystemD? Hello, what can be replaced and how to replace SystemD in Debian. Could put Devoyan, but want to do it myself. Will there be problems with programs and shells without Sy ...
by mc_cake_studio
asked Feb 5, 2021
1 vote
2 answers
Systemd: how to start several of the same services, and how to pass startup parameters?I have written a simple unit my_proc@.service, start this way: systemctl start my_proc@other_name other_nameя also use in the unit. When you try to start a second instanc ...
by topuserman
asked Mar 21, 2020
1 vote
1 answer
Not removed a link to the device when it is disconnected?cat /etc/udev/rules.d/51-android.rules #ConnectSUBSYSTEM=="usb", ACTION=="bind", ENV{DEVTYPE}=="usb_device", ATTR{idVendor}=="2717", ATTR{idProduct}=="ff48", SYMLINK+="Re ...
by bioid
asked Mar 21, 2020
1 vote
2 answers
How to watch oshibki/logs systemd unit?Created your systemd unit that runs a php script. When you view the status of unit through systemctl status my-unitу I also lists the last 10 lines of logs (errors that o ...
by topuserman
asked Mar 18, 2020
1 vote
1 answer
image
What error (systemd does not start the python script)?In /etc/systemd/systemI put the file vkbot.servicesee below. UnitDescription=VK_BOTAfter=network.targetServiceType=simpleExecStart=/usr/local/bin/vkbot/bot.pyRestart= ...
by 1thater
asked Mar 9, 2020
1 vote
3 answers
How to add a startup service using systemctl enable if the service is a symbolic link?I have a service on `systemd`. Is here /etc/systemd/system/my-service@.serviceI need to run this service at system startup. I'm doing this way: systemctl enable my-servic ...
by topuserman
asked Mar 7, 2020
2 votes
1 answer
Whether to use systemd instead of cron to run a php script every second?Hello! PHP 7 Debian 9 Now I use the classics: in a crone every minute run a bash script which runs every second php script. Kind of like the same can be done for systemd. ...
by bigton
asked Mar 6, 2020
2 votes
1 answer
image
What to do with a large number of abandoned Session?At the command systemctl list-units you enter to see a very large number of records: How is it to be? ...
by trinitr0
asked Mar 6, 2020
1 vote
2 answers
Why cannot start process using systemd despite the fact that running it manually works?Good day! Ices2 client for icecast2, manually run the terminal command bigboss@bigboss-server:~$ /usr/bin/ices2 /etc/ices2/ices-alsa.xmlIn this case it works and in log f ...
by korobey
asked Mar 4, 2020
3 votes
1 answer
How to run flask on a server?Hi! Trying to run application on Ubuntu. Original data: Created venv, have set up flask, uwsgi mainapp.py from flask import Flaskapp = Flask(__name__)@app.route('/')def i ...
by Dr_Elvis
asked Mar 4, 2020
1 vote
1 answer
Why not start the server using systemd?I need to start,stop,restarting server Created unit,prescribed in it: UnitDescription=server serviceAfter=network.targetServiceType=forkingExecStart=/home/dima/Загруз ...
by dimonsious
asked Mar 2, 2020
1 vote
1 answer
Why do I see stdout app and from the container in /var/log/syslog host, although nothing is set up?The scheme is as follows. If the application logs to stdout. Running it in a Docker container. That, in turn, starts through systemd. In the end, I see logs in /var/log/s ...
by wawa
asked Mar 2, 2020
1 vote
1 answer
Why the error when you run the script?You have an application, let it be a simple echo bot to cart. threw on the server in a virtual environment. Start applications from the console, everything works fine. Co ...
by Dr_Elvis
asked Mar 1, 2020