Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 14126

Running Python Script With VirtualEnv As Daemon Using .system file

$
0
0
[Unit]Description="Twitter Automations Service"After=network.target[Service]Restart=alwaysExecStart=source /root/twitter_bot/venv/bin/activate && python3 /root/twitter_bot/main.pyExecStop=deactivate[Install]WantedBy=multi-user target

This is the content for my twitter_bot.service file. For some reasons, the service exits after starting. Even after researching for a while, I have no clue why. Any help appreciated


Viewing all articles
Browse latest Browse all 14126

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>