Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
Upstart job to systemd for ubuntu 16.04
This is as simple upstart job which we wrote for starting our application but I am unable to find any good solution to make it for systemD.. If I may create a simple Start and Post Exec command base file, It just gave me errors and nothing work..
I have only hurdles with those basic values as from start to setgid root? how can we write it in SystemD service?
description "evercam_media" start on filesystem or runlevel  stop on runlevel [!2345] limit nofile 1000000 1000000 respawn chdir / setuid root setgid root env HOME=/home/root env LANG=en_US.UTF-8 env LANGUAGE=en_US:en env LS_ALL=en_US.UTF-8 env ERL_MAX_PORTS=10240 exec watch -n1 '/usr/local/bin/run_evercam_media.sh' post-stop exec sudo pkill beam
Any help will be wonderful, i have been struggling so long on this
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×