{"action":"created","issue":{"url":"https://api.github.com/repos/sbt/sbt-native-packager/issues/682","labels_url":"https://api.github.com/repos/sbt/sbt-native-packager/issues/682/labels{/name}","comments_url":"https://api.github.com/repos/sbt/sbt-native-packager/issues/682/comments","events_url":"https://api.github.com/repos/sbt/sbt-native-packager/issues/682/events","html_url":"https://github.com/sbt/sbt-native-packager/issues/682","id":114239985,"number":682,"title":"can't start with root ","user":{"login":"shijinkui","id":648508,"avatar_url":"https://avatars.githubusercontent.com/u/648508?v=3","gravatar_id":"","url":"https://api.github.com/users/shijinkui","html_url":"https://github.com/shijinkui","followers_url":"https://api.github.com/users/shijinkui/followers","following_url":"https://api.github.com/users/shijinkui/following{/other_user}","gists_url":"https://api.github.com/users/shijinkui/gists{/gist_id}","starred_url":"https://api.github.com/users/shijinkui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shijinkui/subscriptions","organizations_url":"https://api.github.com/users/shijinkui/orgs","repos_url":"https://api.github.com/users/shijinkui/repos","events_url":"https://api.github.com/users/shijinkui/events{/privacy}","received_events_url":"https://api.github.com/users/shijinkui/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-30T10:16:37Z","updated_at":"2015-10-30T12:00:38Z","closed_at":null,"body":"> As a side note Fedora/RHEL/Centos family of linux specifies Default requiretty in its /etc/sudoers file. This prevents the default Upstart script from working correctly as it uses sudo to run the application as the daemonUser . Simply disable requiretty to use Upstart or modify the Upstart template.   http://www.scala-sbt.org/sbt-native-packager/archetypes/java_server/customize.html\r\n\r\n```\r\nserverLoading in Rpm := ServerLoader.Upstart\r\ndaemonUser in Linux := \"root\"\r\ndaemonGroup in Linux := (daemonUser in Linux).value\r\n```\r\nAfter install rmp package, i use root to run `service start xxx` fail, the `/etc/init.d/` have no my app. \r\nIs it register the app to the init by default?\r\nwho can help..\r\n\r\n\r\n\r\n> Linux  2.6.32-573.7.1.el6.x86_64 #1 SMP Tue Sep 22 22:00:00 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/sbt/sbt-native-packager/issues/comments/152506181","html_url":"https://github.com/sbt/sbt-native-packager/issues/682#issuecomment-152506181","issue_url":"https://api.github.com/repos/sbt/sbt-native-packager/issues/682","id":152506181,"user":{"login":"shijinkui","id":648508,"avatar_url":"https://avatars.githubusercontent.com/u/648508?v=3","gravatar_id":"","url":"https://api.github.com/users/shijinkui","html_url":"https://github.com/shijinkui","followers_url":"https://api.github.com/users/shijinkui/followers","following_url":"https://api.github.com/users/shijinkui/following{/other_user}","gists_url":"https://api.github.com/users/shijinkui/gists{/gist_id}","starred_url":"https://api.github.com/users/shijinkui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shijinkui/subscriptions","organizations_url":"https://api.github.com/users/shijinkui/orgs","repos_url":"https://api.github.com/users/shijinkui/repos","events_url":"https://api.github.com/users/shijinkui/events{/privacy}","received_events_url":"https://api.github.com/users/shijinkui/received_events","type":"User","site_admin":false},"created_at":"2015-10-30T12:00:38Z","updated_at":"2015-10-30T12:00:38Z","body":"```\r\n\r\nrpm -ivh agent-1.0.28-2.noarch.rpm\r\nwarning: agent-1.0.28-2.noarch.rpm: Header V4 RSA/SHA1 Signature, key ID ddfeef76: NOKEY\r\nPreparing...                ########################################### [100%]\r\nerror: %pre(emr-agent-1.0.28-2.noarch) scriptlet failed, exit status 1\r\nerror:   install: %pre scriptlet failed (2), skipping emr-agent-1.0.28-2\r\n\r\n```"}}