{"action":"created","issue":{"url":"https://api.github.com/repos/vstakhov/rspamd/issues/2044","repository_url":"https://api.github.com/repos/vstakhov/rspamd","labels_url":"https://api.github.com/repos/vstakhov/rspamd/issues/2044/labels{/name}","comments_url":"https://api.github.com/repos/vstakhov/rspamd/issues/2044/comments","events_url":"https://api.github.com/repos/vstakhov/rspamd/issues/2044/events","html_url":"https://github.com/vstakhov/rspamd/issues/2044","id":301282682,"number":2044,"title":"Failed to start rspamd service due to nonexistent configuration file.","user":{"login":"cosmo0920","id":700876,"avatar_url":"https://avatars1.githubusercontent.com/u/700876?v=4","gravatar_id":"","url":"https://api.github.com/users/cosmo0920","html_url":"https://github.com/cosmo0920","followers_url":"https://api.github.com/users/cosmo0920/followers","following_url":"https://api.github.com/users/cosmo0920/following{/other_user}","gists_url":"https://api.github.com/users/cosmo0920/gists{/gist_id}","starred_url":"https://api.github.com/users/cosmo0920/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cosmo0920/subscriptions","organizations_url":"https://api.github.com/users/cosmo0920/orgs","repos_url":"https://api.github.com/users/cosmo0920/repos","events_url":"https://api.github.com/users/cosmo0920/events{/privacy}","received_events_url":"https://api.github.com/users/cosmo0920/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-01T05:30:03Z","updated_at":"2018-04-10T18:00:38Z","closed_at":null,"author_association":"NONE","body":"### Classification (Please choose *one* option):\r\n\r\n* [ ] Crash/Hang/Data loss\r\n* [ ] WebUI/Usability\r\n* [x] Serious bug\r\n* [ ] Other bug\r\n* [ ] Feature\r\n* [ ] Enhancement\r\n\r\n### Reproducibility (Please choose *one* option):\r\n\r\n* [X] Always\r\n* [ ] Sometimes\r\n* [ ] Rarely\r\n* [ ] Unable\r\n* [ ] I didn’t try\r\n* [ ] Not applicable\r\n\r\n### Rspamd version:\r\n\r\nrspamd.x86_64 0:1.6.6-4\r\n\r\n### Operation system, CPU, memory and environment:\r\n\r\n```log\r\n$ cat /etc/redhat-release \r\nCentOS release 6.9 (Final)\r\n```\r\n\r\n### Description (Please provide a descriptive summary of the issue):\r\n\r\nFailed to start rspamd service due to not found configuration file.\r\n\r\n### Compile errors (if any):\r\n\r\nNone.\r\n\r\n### Steps to reproduce:\r\n\r\n1. Install from rspamd package from official rspamd repository.\r\n   1. I've followed this installation instruction: https://rspamd.com/downloads.html\r\n2. sudo service rspamd start\r\n\r\n### Expected results:\r\n\r\nLaunch rspamd successfully.\r\n\r\n### Actual results:\r\n\r\n```\r\n$ sudo service rspamd start\r\nStarting rspamd: 2018-03-01 05:21:18 #13632(main) cfg; rspamd_config_read: cannot stat /etc/rspamd/rspamd.sysvinit.conf: No such file or directory\r\n                                                           [FAILED]\r\n```\r\n\r\n### Debugging information (see details [here](https://rspamd.com/doc/faq.html#how-to-figure-out-why-rspamd-process-crashed)):\r\n\r\n### Configuration:\r\n\r\nNone. None of configuration is not modified.\r\n\r\n### Additional information:\r\n\r\n```log\r\n$ LANG=C ls /etc/rspamd/rspamd.sysvinit.conf\r\nls: cannot access /etc/rspamd/rspamd.sysvinit.conf: No such file or directory\r\n```\r\n\r\nIn `/etc/init.d/rspamd`, nonexistent `/etc/rspamd/rspamd.sysvinit.conf` is still referenced.\r\n\r\n```conf\r\n# ...\r\nrspamd=\"/usr/bin/rspamd\"\r\nrspamadm=\"/usr/bin/rspamadm\"\r\nprog=$(basename $rspamd)\r\n\r\nRSPAMD_CONF_FILE=\"/etc/rspamd/rspamd.sysvinit.conf\"\r\nRSPAMD_USER=\"_rspamd\"\r\nRSPAMD_GROUP=\"_rspamd\"\r\n```\r\n\r\n`/etc/rspamd/rspamd.conf` should be used instead of old `/etc/rspamd/rspamd.sysvinit.conf` place."},"comment":{"url":"https://api.github.com/repos/vstakhov/rspamd/issues/comments/380193025","html_url":"https://github.com/vstakhov/rspamd/issues/2044#issuecomment-380193025","issue_url":"https://api.github.com/repos/vstakhov/rspamd/issues/2044","id":380193025,"user":{"login":"dajones70","id":1120661,"avatar_url":"https://avatars0.githubusercontent.com/u/1120661?v=4","gravatar_id":"","url":"https://api.github.com/users/dajones70","html_url":"https://github.com/dajones70","followers_url":"https://api.github.com/users/dajones70/followers","following_url":"https://api.github.com/users/dajones70/following{/other_user}","gists_url":"https://api.github.com/users/dajones70/gists{/gist_id}","starred_url":"https://api.github.com/users/dajones70/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dajones70/subscriptions","organizations_url":"https://api.github.com/users/dajones70/orgs","repos_url":"https://api.github.com/users/dajones70/repos","events_url":"https://api.github.com/users/dajones70/events{/privacy}","received_events_url":"https://api.github.com/users/dajones70/received_events","type":"User","site_admin":false},"created_at":"2018-04-10T18:00:38Z","updated_at":"2018-04-10T18:00:38Z","author_association":"NONE","body":"Still a problem with 1.7.3.  The /etc/init.d/rspamd script needs to have this line changed:\r\nRSPAMD_CONF_FILE=\"/etc/rspamd/rspamd.sysvinit.conf\"\r\nto \r\nRSPAMD_CONF_FILE=\"/etc/rspamd/rspamd.conf\""}}
{"actor":{"display_login":"dajones70"}}