{"action":"created","issue":{"url":"https://api.github.com/repos/Supervisor/supervisor/issues/709","labels_url":"https://api.github.com/repos/Supervisor/supervisor/issues/709/labels{/name}","comments_url":"https://api.github.com/repos/Supervisor/supervisor/issues/709/comments","events_url":"https://api.github.com/repos/Supervisor/supervisor/issues/709/events","html_url":"https://github.com/Supervisor/supervisor/issues/709","id":125519301,"number":709,"title":"[feature request] options to deal with bad logging situation","user":{"login":"ElTopo","id":217195,"avatar_url":"https://avatars.githubusercontent.com/u/217195?v=3","gravatar_id":"","url":"https://api.github.com/users/ElTopo","html_url":"https://github.com/ElTopo","followers_url":"https://api.github.com/users/ElTopo/followers","following_url":"https://api.github.com/users/ElTopo/following{/other_user}","gists_url":"https://api.github.com/users/ElTopo/gists{/gist_id}","starred_url":"https://api.github.com/users/ElTopo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ElTopo/subscriptions","organizations_url":"https://api.github.com/users/ElTopo/orgs","repos_url":"https://api.github.com/users/ElTopo/repos","events_url":"https://api.github.com/users/ElTopo/events{/privacy}","received_events_url":"https://api.github.com/users/ElTopo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Supervisor/supervisor/labels/logging","name":"logging","color":"bfdadc"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-08T00:59:03Z","updated_at":"2016-01-08T01:08:07Z","closed_at":"2016-01-08T01:05:02Z","body":"Hello,\r\n\r\nDebian's supervisor package configures logfile path to be\r\n/var/log/supervisor/supervisord.log\r\nand creates /var/log/supervisor at installation.\r\n\r\nHowever, when I put /var/log in tmpfs that directory may not exist after system reboot/reset, causing  supervisord exits with the following error:\r\nError: The directory named as part of the path /var/log/supervisor/supervisord.log does not exist.\r\n\r\nThis is a bad situation since I depend on supervisord for running several other processes.\r\n\r\nI would like to request some options to deal with this situation:\r\n1. \"create directory\" option: when enabled, supervisord tries to create the directory (/var/log/supervisor) if it does not exist;\r\n2. \"continue on error\" option: when enabled, if supervisord cannot write the log files (read-only filesystem, directory does not exist, etc.), it complains about the problem in daemon.log, but still continues to run without any loggings (samba works this way by default, if I don't have /var/log/samba directory, it disables all loggings but still keeps running). I much prefer my processes running with any logs to not running at all.\r\n\r\nThanks.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Supervisor/supervisor/issues/comments/169856533","html_url":"https://github.com/Supervisor/supervisor/issues/709#issuecomment-169856533","issue_url":"https://api.github.com/repos/Supervisor/supervisor/issues/709","id":169856533,"user":{"login":"ElTopo","id":217195,"avatar_url":"https://avatars.githubusercontent.com/u/217195?v=3","gravatar_id":"","url":"https://api.github.com/users/ElTopo","html_url":"https://github.com/ElTopo","followers_url":"https://api.github.com/users/ElTopo/followers","following_url":"https://api.github.com/users/ElTopo/following{/other_user}","gists_url":"https://api.github.com/users/ElTopo/gists{/gist_id}","starred_url":"https://api.github.com/users/ElTopo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ElTopo/subscriptions","organizations_url":"https://api.github.com/users/ElTopo/orgs","repos_url":"https://api.github.com/users/ElTopo/repos","events_url":"https://api.github.com/users/ElTopo/events{/privacy}","received_events_url":"https://api.github.com/users/ElTopo/received_events","type":"User","site_admin":false},"created_at":"2016-01-08T01:08:07Z","updated_at":"2016-01-08T01:08:07Z","body":"Thanks for the reply, I currently use a script to create the (hardcoded) directory but the problem is, the script does not know the logfile path (or rather, it has to parse supervisord.conf), it's easier and better that supervisord can handle this."}}