1 2 3 4 5 6 7 8 9 10 11 12 13 14
[Unit] Wants=redis.service Wants=%db%.service [Service] User=diaspora WorkingDirectory=/usr/share/webapps/diaspora ExecStart=/bin/bash -lc "true; source .bashrc; ./script/server" Restart=always StandardInput=null KillMode=control-group [Install] WantedBy=multi-user.target