{"action":"created","issue":{"url":"https://api.github.com/repos/just-containers/s6-overlay-builder/issues/25","labels_url":"https://api.github.com/repos/just-containers/s6-overlay-builder/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/just-containers/s6-overlay-builder/issues/25/comments","events_url":"https://api.github.com/repos/just-containers/s6-overlay-builder/issues/25/events","html_url":"https://github.com/just-containers/s6-overlay-builder/issues/25","id":63283965,"number":25,"title":"silent operation","user":{"login":"dreamcat4","id":63074,"avatar_url":"https://avatars.githubusercontent.com/u/63074?v=3","gravatar_id":"","url":"https://api.github.com/users/dreamcat4","html_url":"https://github.com/dreamcat4","followers_url":"https://api.github.com/users/dreamcat4/followers","following_url":"https://api.github.com/users/dreamcat4/following{/other_user}","gists_url":"https://api.github.com/users/dreamcat4/gists{/gist_id}","starred_url":"https://api.github.com/users/dreamcat4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dreamcat4/subscriptions","organizations_url":"https://api.github.com/users/dreamcat4/orgs","repos_url":"https://api.github.com/users/dreamcat4/repos","events_url":"https://api.github.com/users/dreamcat4/events{/privacy}","received_events_url":"https://api.github.com/users/dreamcat4/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-03-20T19:03:48Z","updated_at":"2015-03-24T22:54:26Z","closed_at":null,"body":"Right... with newest v1.8.2 we are always outputting certain things during the startup and shutdown. That is good for debugging problems, and OK when running things in daemon mode. However for single-shot cmdline operation, is not desirable.\r\n\r\nI wonder what would be the best way to do this in the stageN scripts ?\r\n\r\nHere is a real-world example:\r\n\r\n**s6-overlay v1.8.2 output***\r\n\r\n```sh\r\ns$ docker run dreamcat4/tvheadend-uk-atlas --help\r\n[fix-attrs.d] applying owners & permissions fixes...\r\n[fix-attrs.d] applying 00-runscripts...  exited 0\r\n[fix-attrs.d] done.\r\n[cont-init.d] executing container initialization scripts...\r\n[cont-init.d] done.\r\n[services.d] starting services\r\n[services.d] done.\r\n/usr/bin/tvheadend -u hts -g video -c /config --help\r\nUsage: /usr/bin/tvheadend [OPTIONS]\r\n\r\nGeneric Options\r\n\r\n  -h, --help                  Show this page\r\n  -v, --version               Show version infomation\r\n\r\nService Configuration\r\n\r\n  -c, --config                Alternate config path\r\n  -B, --nobackup              Do not backup config tree at upgrade\r\n  -f, --fork                  Fork and run as daemon\r\n  -u, --user                  Run as user\r\n  -g, --group                 Run as group\r\n  -p, --pid                   Alternate pid path\r\n  -C, --firstrun              If no user account exists then create one with\r\n                              no username and no password. Use with care as\r\n                              it will allow world-wide administrative access\r\n                              to your Tvheadend installation until you edit\r\n                              the access-control from within the Tvheadend UI\r\n  -U, --dbus                  Enable DBus\r\n  -e, --dbus_session          DBus - use the session message bus instead system one\r\n  -a, --adapters              Only use specified DVB adapters (comma separated)\r\n      --satip_xml             URL with the SAT>IP server XML location\r\n\r\nServer Connectivity\r\n\r\n  -6, --ipv6                  Listen on IPv6\r\n  -b, --bindaddr              Specify bind address\r\n      --http_port             Specify alternative http port\r\n      --http_root             Specify alternative http webroot\r\n      --htsp_port             Specify alternative htsp port\r\n      --htsp_port2            Specify extra htsp port\r\n      --useragent             Specify User-Agent header for the http client\r\n      --xspf                  Use xspf playlist instead M3U\r\n\r\nDebug Options\r\n\r\n  -d, --stderr                Enable debug on stderr\r\n  -s, --syslog                Enable debug to syslog\r\n  -l, --logfile               Enable debug to file\r\n      --debug                 Enable debug subsystems\r\n      --trace                 Enable trace subsystems\r\n      --fileline              Add file and line numbers to debug\r\n      --threadid              Add the thread ID to debug\r\n      --uidebug               Enable webUI debug (non-minified JS)\r\n  -A, --abort                 Immediately abort\r\n  -D, --dump                  Enable coredumps for daemon\r\n      --noacl                 Disable all access control checks\r\n      --nobat                 Disable DVB bouquets\r\n  -j, --join                  Subscribe to a service permanently\r\n\r\nTODO: testing\r\n\r\n      --tsfile_tuners         Number of tsfile tuners\r\n      --tsfile                tsfile input (mux file)\r\n\r\nFor more information please visit the Tvheadend website:\r\n  https://tvheadend.org\r\n\r\n/entrypoint.sh exited 0. Stopping the supervision tree.\r\n[s6-finish] syncing disks.\r\nif: fatal: child crashed with signal 11\r\n[s6-finish] sending all processes the TERM signal.\r\n[s6-finish] sending all processes the KILL signal and exiting.\r\n```\r\n\r\n**Desired output:** - s6-overlay is silent\r\n\r\n```sh\r\n$ docker run --entrypoint=\"tvheadend\" dreamcat4/tvheadend-uk-atlas --help\r\nUsage: tvheadend [OPTIONS]\r\n\r\nGeneric Options\r\n\r\n  -h, --help                  Show this page\r\n  -v, --version               Show version infomation\r\n\r\nService Configuration\r\n\r\n  -c, --config                Alternate config path\r\n  -B, --nobackup              Do not backup config tree at upgrade\r\n  -f, --fork                  Fork and run as daemon\r\n  -u, --user                  Run as user\r\n  -g, --group                 Run as group\r\n  -p, --pid                   Alternate pid path\r\n  -C, --firstrun              If no user account exists then create one with\r\n                              no username and no password. Use with care as\r\n                              it will allow world-wide administrative access\r\n                              to your Tvheadend installation until you edit\r\n                              the access-control from within the Tvheadend UI\r\n  -U, --dbus                  Enable DBus\r\n  -e, --dbus_session          DBus - use the session message bus instead system one\r\n  -a, --adapters              Only use specified DVB adapters (comma separated)\r\n      --satip_xml             URL with the SAT>IP server XML location\r\n\r\nServer Connectivity\r\n\r\n  -6, --ipv6                  Listen on IPv6\r\n  -b, --bindaddr              Specify bind address\r\n      --http_port             Specify alternative http port\r\n      --http_root             Specify alternative http webroot\r\n      --htsp_port             Specify alternative htsp port\r\n      --htsp_port2            Specify extra htsp port\r\n      --useragent             Specify User-Agent header for the http client\r\n      --xspf                  Use xspf playlist instead M3U\r\n\r\nDebug Options\r\n\r\n  -d, --stderr                Enable debug on stderr\r\n  -s, --syslog                Enable debug to syslog\r\n  -l, --logfile               Enable debug to file\r\n      --debug                 Enable debug subsystems\r\n      --trace                 Enable trace subsystems\r\n      --fileline              Add file and line numbers to debug\r\n      --threadid              Add the thread ID to debug\r\n      --uidebug               Enable webUI debug (non-minified JS)\r\n  -A, --abort                 Immediately abort\r\n  -D, --dump                  Enable coredumps for daemon\r\n      --noacl                 Disable all access control checks\r\n      --nobat                 Disable DVB bouquets\r\n  -j, --join                  Subscribe to a service permanently\r\n\r\nTODO: testing\r\n\r\n      --tsfile_tuners         Number of tsfile tuners\r\n      --tsfile                tsfile input (mux file)\r\n\r\nFor more information please visit the Tvheadend website:\r\n  https://tvheadend.org\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/just-containers/s6-overlay-builder/issues/comments/85726198","html_url":"https://github.com/just-containers/s6-overlay-builder/issues/25#issuecomment-85726198","issue_url":"https://api.github.com/repos/just-containers/s6-overlay-builder/issues/25","id":85726198,"user":{"login":"dreamcat4","id":63074,"avatar_url":"https://avatars.githubusercontent.com/u/63074?v=3","gravatar_id":"","url":"https://api.github.com/users/dreamcat4","html_url":"https://github.com/dreamcat4","followers_url":"https://api.github.com/users/dreamcat4/followers","following_url":"https://api.github.com/users/dreamcat4/following{/other_user}","gists_url":"https://api.github.com/users/dreamcat4/gists{/gist_id}","starred_url":"https://api.github.com/users/dreamcat4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dreamcat4/subscriptions","organizations_url":"https://api.github.com/users/dreamcat4/orgs","repos_url":"https://api.github.com/users/dreamcat4/repos","events_url":"https://api.github.com/users/dreamcat4/events{/privacy}","received_events_url":"https://api.github.com/users/dreamcat4/received_events","type":"User","site_admin":false},"created_at":"2015-03-24T22:54:26Z","updated_at":"2015-03-24T22:54:26Z","body":"Thanks Gorka! I agree it is a good improvement. Excellent."}}