๐Ÿ“— Ansible playbooks and roles for building an idempotent, interconnected and scalable infrastructure
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
ansible-playbooks/roles/cdr/templates/init.j2

14 lines
267 B

#!/sbin/openrc-run
name="$SVCNAME"
directory="{{ cdr_dir }}"
command="node {{ cdr_dir }}/app.js"
command_user="{{ cdr_user }}:{{ cdr_group }}"
pidfile="/var/run/$SVCNAME.pid"
supervisor="supervise-daemon"
respawn_max=0
depend() {
need net
use dns
}