{"id":3076,"date":"2022-12-20T16:43:26","date_gmt":"2022-12-20T19:43:26","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/service-man8\/"},"modified":"2022-12-20T16:43:26","modified_gmt":"2022-12-20T19:43:26","slug":"service-man8","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/service-man8\/","title":{"rendered":"service (man8)"},"content":{"rendered":"<h1 align=\"center\">service<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#FILES\">FILES<\/a><br \/> <a href=\"#ENVIRONMENT\">ENVIRONMENT<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">service \u2212 run a System V init script<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>service<\/b> <i>SCRIPT COMMAND<\/i> [<i>OPTIONS<\/i>]<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>service \u2212\u2212status\u2212all<\/b><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>service \u2212\u2212help<\/b> | <b>\u2212h<\/b> | <b>\u2212\u2212version<\/b><\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>service<\/b> runs a System V init script in as predictable environment as possible, removing most environment variables and with current working directory set to <b>\/<\/b>.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i>SCRIPT<\/i> parameter specifies a System V init script, located in <b>\/etc\/init.d\/<\/b><i>SCRIPT<\/i>. The supported values of <i>COMMAND<\/i> depend on the invoked script, <b>service<\/b> passes <i>COMMAND<\/i> and <i>OPTIONS<\/i> it to the init script unmodified. All scripts should support at least the <b>start<\/b> and <b>stop<\/b> commands. As a special case, if <i>COMMAND<\/i> is <b>\u2212\u2212full-restart<\/b>, the script is run twice, first with the <b>stop<\/b> command, then with the <b>start<\/b> command.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>service \u2212\u2212status\u2212all<\/b> runs all init scripts, in alphabetical order, with the <b>status<\/b> command.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">If the init script file does not exist, the script tries to use <b>legacy actions.<\/b> If there is no suitable legacy action found and <i>COMMAND<\/i> is one of actions specified in LSB Core Specification, input is redirected to the <b>systemctl.<\/b> Otherwise the command fails with return code 2.<\/p>\n<h2>FILES <a name=\"FILES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>\/etc\/init.d<\/b><\/p>\n<p style=\"margin-left:22%;\">The directory containing System V init scripts.<\/p>\n<h2>ENVIRONMENT <a name=\"ENVIRONMENT\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>LANG<\/b>, <b>TERM<\/b><\/p>\n<p style=\"margin-left:22%;\">The only environment variables passed to the init scripts.<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>chkconfig<\/b>(8), <b>ntsysv(8), systemd<\/b>(1), <b>systemctl<\/b>(8), <b>systemd.service<\/b>(5)<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  service \u2212 run a System V init script <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[5,52,4,225],"class_list":["post-3076","post","type-post","status-publish","format-standard","hentry","category-8-administracion-del-sistema","tag-5","tag-administracion","tag-man8","tag-service"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3076","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=3076"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3076\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=3076"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=3076"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=3076"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}