{"id":6703,"date":"2022-06-30T00:46:11","date_gmt":"2022-06-30T00:46:11","guid":{"rendered":"https:\/\/swiv.com.br\/how-to-find-out-if-my-linux-uses-sysv-upstart-or-systemd\/"},"modified":"2026-05-27T20:02:29","modified_gmt":"2026-05-27T19:02:29","slug":"how-to-find-out-if-my-linux-uses-sysv-upstart-or-systemd","status":"publish","type":"post","link":"https:\/\/swiv.com.br\/index.php\/2022\/06\/30\/how-to-find-out-if-my-linux-uses-sysv-upstart-or-systemd\/","title":{"rendered":"How to find out if my Linux uses SysV, Upstart or Systemd"},"content":{"rendered":"\n<p>O SysV, systemd ou upstart s\u00e3o gerenciadores de sistemas ou servi\u00e7os no Linux, com conceitos iguais mas aplica\u00e7\u00f5es pr\u00e1ticas um pouco diferentes. Para validarmos qual deles est\u00e1 em uso, podemos partir do pressuposto que o processo de inicializa\u00e7\u00e3o sempre ser\u00e1 o n\u00famero 1, e fazer a an\u00e1lise com as op\u00e7\u00f5es abaixo:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \\&quot;wp-block-syntaxhighlighter-code\\&quot;\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;oracle@oel7 ~]$ ps -p 1\n  PID TTY          TIME CMD\n    1 ?        00:00:07 systemd\n<\/pre><\/div>\n\n\n<p>Para o comando abaixo, podemos execut\u00e1-lo com o usu\u00e1rio root por conta de privil\u00e9gios:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \\&quot;wp-block-syntaxhighlighter-code\\&quot;\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;root@oel7 ~]# stat \/proc\/1\/exe\n  File: \u2018\/proc\/1\/exe\u2019 -&gt; \u2018\/usr\/lib\/systemd\/systemd\u2019\n  Size: 0               Blocks: 0          IO Block: 1024   symbolic link\nDevice: 4h\/4d   Inode: 11540       Links: 1\nAccess: (0777\/lrwxrwxrwx)  Uid: (    0\/    root)   Gid: (    0\/    root)\nContext: system_u:system_r:init_t:s0\nAccess: 2022-06-29 20:23:19.644000000 -0300\nModify: 2022-06-29 20:23:19.590000000 -0300\nChange: 2022-06-29 20:23:19.590000000 -0300\n Birth: -\n&#x5B;root@oel7 ~]#\n<\/pre><\/div>","protected":false},"excerpt":{"rendered":"<p>O SysV, systemd ou upstart s\u00e3o gerenciadores de sistemas ou servi\u00e7os no Linux, com conceitos iguais mas aplica\u00e7\u00f5es pr\u00e1ticas um pouco diferentes. Para validarmos qual deles est\u00e1 em uso, podemos partir do pressuposto que o processo de inicializa\u00e7\u00e3o sempre ser\u00e1 o n\u00famero 1, e fazer a an\u00e1lise com as op\u00e7\u00f5es abaixo: Para o comando abaixo, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-6703","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/posts\/6703","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/comments?post=6703"}],"version-history":[{"count":1,"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/posts\/6703\/revisions"}],"predecessor-version":[{"id":9038,"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/posts\/6703\/revisions\/9038"}],"wp:attachment":[{"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/media?parent=6703"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/categories?post=6703"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/tags?post=6703"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}