{"id":1979,"date":"2025-03-31T15:09:58","date_gmt":"2025-03-31T13:09:58","guid":{"rendered":"https:\/\/artheodoc.fr\/?page_id=1979"},"modified":"2025-11-16T14:40:22","modified_gmt":"2025-11-16T13:40:22","slug":"les-services-linux-avec-systemd","status":"publish","type":"page","link":"https:\/\/artheodoc.fr\/index.php\/les-services-linux-avec-systemd\/","title":{"rendered":"Les services Linux avec systemd"},"content":{"rendered":"\n<p>Pour lister les diff\u00e9rents services disponibles&nbsp;:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>systemctl list-unit-files --type=service<\/strong><\/pre>\n\n\n\n<p>D\u00e9marrer un Service&nbsp;:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>systemctl start <em>mon_service<\/em>.service<\/strong><\/pre>\n\n\n\n<p>Activer et d\u00e9marrer le service&nbsp;:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>systemctl enable --now <em>mon_service<\/em><\/strong><\/pre>\n\n\n\n<p>Arr\u00eater un Service&nbsp;:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>systemctl stop <em>mon_service<\/em>.service<\/strong><\/pre>\n\n\n\n<p>Red\u00e9marrer un Service&nbsp;:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>systemctl restart <em>mon_service<\/em>.service<\/strong><\/pre>\n\n\n\n<p>Activer un Service au D\u00e9marrage&nbsp;:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>systemctl enable <em>mon_service<\/em>.service<\/strong><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>systemctl enable --now <\/strong><em><strong>mon_service<\/strong><\/em><\/pre>\n\n\n\n<p>D\u00e9sactiver un Service au D\u00e9marrage&nbsp;:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>systemctl disable <\/strong><em><strong>mon_service<\/strong><\/em><strong>.service<\/strong><\/pre>\n\n\n\n<p>V\u00e9rifier l\u2019\u00c9tat d\u2019un Service&nbsp;:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>systemctl status<\/strong><\/pre>\n\n\n\n<p>Recharger la configuration de systemd&nbsp;:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>systemctl daemon-reload<\/strong><\/pre>\n\n\n\n<p>Pour voir les logs&nbsp;:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>journalctl -u <em>mon_service<\/em><\/strong><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide\"\/>\n\n\n\n<p class=\"has-medium-font-size\"><strong>Exemples<\/strong><\/p>\n\n\n\n<p><a href=\"https:\/\/artheodoc.fr\/index.php\/2025\/11\/16\/installation-de-file-browser-avec-docker-sous-debian-13\/\" data-type=\"post\" data-id=\"2563\" target=\"_blank\" rel=\"noreferrer noopener\">Installation de File Browser avec Docker sous Debian 13<\/a><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Pour lister les diff\u00e9rents services disponibles&nbsp;: systemctl list-unit-files &#8211;type=service D\u00e9marrer un Service&nbsp;: systemctl start mon_service.service Activer et d\u00e9marrer le service&nbsp;: systemctl enable &#8211;now mon_service Arr\u00eater un Service&nbsp;: systemctl stop mon_service.service Red\u00e9marrer un Service&nbsp;: systemctl restart mon_service.service Activer un Service au D\u00e9marrage&nbsp;: systemctl enable mon_service.service systemctl enable &#8211;now mon_service D\u00e9sactiver un Service au D\u00e9marrage&nbsp;: systemctl disable [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"class_list":["post-1979","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/pages\/1979","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/comments?post=1979"}],"version-history":[{"count":5,"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/pages\/1979\/revisions"}],"predecessor-version":[{"id":2568,"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/pages\/1979\/revisions\/2568"}],"wp:attachment":[{"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/media?parent=1979"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}