{"action":"created","issue":{"url":"https://api.github.com/repos/HomerSlated/urbackup-server-gentoo/issues/2","repository_url":"https://api.github.com/repos/HomerSlated/urbackup-server-gentoo","labels_url":"https://api.github.com/repos/HomerSlated/urbackup-server-gentoo/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/HomerSlated/urbackup-server-gentoo/issues/2/comments","events_url":"https://api.github.com/repos/HomerSlated/urbackup-server-gentoo/issues/2/events","html_url":"https://github.com/HomerSlated/urbackup-server-gentoo/issues/2","id":198251715,"number":2,"title":"systemd unit file simple vs daemonizing","user":{"login":"jonesmz","id":755783,"avatar_url":"https://avatars.githubusercontent.com/u/755783?v=3","gravatar_id":"","url":"https://api.github.com/users/jonesmz","html_url":"https://github.com/jonesmz","followers_url":"https://api.github.com/users/jonesmz/followers","following_url":"https://api.github.com/users/jonesmz/following{/other_user}","gists_url":"https://api.github.com/users/jonesmz/gists{/gist_id}","starred_url":"https://api.github.com/users/jonesmz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonesmz/subscriptions","organizations_url":"https://api.github.com/users/jonesmz/orgs","repos_url":"https://api.github.com/users/jonesmz/repos","events_url":"https://api.github.com/users/jonesmz/events{/privacy}","received_events_url":"https://api.github.com/users/jonesmz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-01-01T00:14:57Z","updated_at":"2017-01-11T02:13:15Z","closed_at":null,"body":"The systemd unit file that you've included in your repository\r\n\r\n`[Unit]\r\nDescription=UrBackup backup service\r\nAfter=syslog.target network.target\r\n\r\n[Service]\r\nType=simple\r\nUser=urbackup\r\nExecStart=/usr/bin/urbackupsrv run -c /etc/conf.d/urbackupsrv -w /var/run/urbackup.pid -d\r\n\r\n[Install]\r\nWantedBy=multi-user.target`\r\n\r\nHas the -d option passed to urbackupsrv, to daemonize the service. But you have the service type listed as \"simple\". That makes sytemd think that as soon as the process that systemd launches exits, the service is finished.\r\n\r\nI'd recommend removing the \"-d\" flag.\r\n\r\nAlternatively you could change the service type to \"Forking\"\r\n\r\nAdditionally, you might consider using the PIDFile= flag.\r\n\r\n\r\n`[Unit]\r\nDescription=UrBackup backup service\r\nAfter=syslog.target network.target\r\n\r\n[Service]\r\nType=simple\r\nUser=urbackup\r\nPIDFile=/var/run/urbackup.pid\r\nExecStart=/usr/bin/urbackupsrv run -c /etc/conf.d/urbackupsrv -w /var/run/urbackup.pid\r\n\r\n[Install]\r\nWantedBy=multi-user.target`"},"comment":{"url":"https://api.github.com/repos/HomerSlated/urbackup-server-gentoo/issues/comments/271758450","html_url":"https://github.com/HomerSlated/urbackup-server-gentoo/issues/2#issuecomment-271758450","issue_url":"https://api.github.com/repos/HomerSlated/urbackup-server-gentoo/issues/2","id":271758450,"user":{"login":"jonesmz","id":755783,"avatar_url":"https://avatars.githubusercontent.com/u/755783?v=3","gravatar_id":"","url":"https://api.github.com/users/jonesmz","html_url":"https://github.com/jonesmz","followers_url":"https://api.github.com/users/jonesmz/followers","following_url":"https://api.github.com/users/jonesmz/following{/other_user}","gists_url":"https://api.github.com/users/jonesmz/gists{/gist_id}","starred_url":"https://api.github.com/users/jonesmz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonesmz/subscriptions","organizations_url":"https://api.github.com/users/jonesmz/orgs","repos_url":"https://api.github.com/users/jonesmz/repos","events_url":"https://api.github.com/users/jonesmz/events{/privacy}","received_events_url":"https://api.github.com/users/jonesmz/received_events","type":"User","site_admin":false},"created_at":"2017-01-11T02:13:15Z","updated_at":"2017-01-11T02:13:15Z","body":"It's all good. Personally I love it, it drastically simplifies things in my opinion.\r\n\r\n\r\nEither way, do you ever use the new repos.conf.d feature of portage? \r\n\r\nCurrently you have this git repository set up in a way that I don't think it'll work with repos.conf.d.\r\n\r\nIf you want, i'd be happy to collaborate with you on combining your urbackup-server and urbackup-client git repositories into an overlay compatible with repos.conf.d."}}
{"actor":{"display_login":"jonesmz"}}