aboutsummaryrefslogtreecommitdiff
path: root/docs/wiki/system/service-management.html
blob: 40d9c54571ad7280ffed4c59cae15ee27e2cd847 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<!DOCTYPE HTML>
<html lan="en">
<head>
<title>Service Management | Carbs Linux</title>
<link rel="stylesheet" href="/assets/style.css">
<meta charset="utf-8">
<meta name="Description" content="Carbs Linux - a simple busybox linux distribution">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
</head>
<p class=header><strong>Carbs Linux - a simple busybox linux distribution</strong></p>
<div class="header"><nav>
<a href='/'>index</a>
<a href='https://github.com/CarbsLinux'>github</a>
<a href='//dl.carbslinux.org'>downloads</a>
<a href='/blog'>blog</a>
<a href='/wiki'>wiki</a>
<a href='/wiki/install.html'>installation</a>
</nav></div><div class="border"></div>
<h1>Service Management</h1>

<p>Carbs Linux uses busybox-runit as the default system supervisor.</p>

<h2>Enabling Services</h2>

<p>Services start immediately when you enable them, and run by default on boot.</p>

<pre><code>$ ln -s /etc/sv/acpid /var/service
</code></pre>

<h2>Disabling a service</h2>

<pre><code>$ unlink /var/service/acpid
</code></pre>

<h2>Starting a service</h2>

<pre><code>$ sv start acpid
</code></pre>

<h2>Stopping a service</h2>

<pre><code>$ sv stop acpid
</code></pre>

<h2>More</h2>

<p>Runit is extremely flexible and simple. Refer to <code>sv</code>, <code>runsv</code>, <code>svc</code>, <code>runsvdir</code>
help outputs for more information.</p>
<a href="/wiki/system/service-management.txt">View Page Source</a><div class=border></div>
<p class=footer>Linux® is a registered trademark of Linus Torvalds</p>
<p class=footer>Copyright © 2019-2020 Cem Keylan</p>
</body>
</html>