Welcome to the Slackware Documentation Project

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
howtos:slackware_admin:runit [2019/05/29 11:40 (UTC)]
chrisabela
howtos:slackware_admin:runit [2019/05/30 12:34 (UTC)] (current)
chrisabela
Line 10: Line 10:
  
 To read on the benefits of runit, see here: http://​smarden.org/​runit/​benefits.html To read on the benefits of runit, see here: http://​smarden.org/​runit/​benefits.html
 +
 +Unless otherwise stated, all commands in this article are to be run by root.
  
 ===== 2. Use runit with traditional init ===== ===== 2. Use runit with traditional init =====
Line 225: Line 227:
 </​code>​ </​code>​
  
-In order to let the non-privileged ​user (say user bob) run it, change the ownership of the service directory +As a non-priviliged ​user (say user bob), create some directories:
- +
-<​code>​ +
-chown bob.users /​etc/​sv/​example +
-</​code>​ +
- +
-As a non-priviliged user, create some directories+
  
 <​code>​ <​code>​
Line 237: Line 233:
 </​code>​ </​code>​
  
-Then edit a script that simulates a (finicky) service in a convenient directory; say +Then edit a ''/​home/​bob/​runit/​service.sh'' ​script that simulates a (finicky) service in a convenient directory; say 
  
 <​code>​ <​code>​
Line 263: Line 259:
 </​code>​ </​code>​
  
-Edit a file called ''/​etc/​sv/​example/​run''​ and give it executable permissions+Log in back as root and edit a file called ''/​etc/​sv/​example/​run''​ and give it executable permissions:
  
 <​code>​ <​code>​
Line 298: Line 294:
 </​code>​ </​code>​
  
-Log in as root and run the sv service to ensure that it works:+Run the service to ensure that it works:
  
 <​code>​ <​code>​
-su - 
 /​etc/​sv/​example/​run /​etc/​sv/​example/​run
 </​code>​ </​code>​
Line 321: Line 316:
 Hit CTRL+C to exit. Hit CTRL+C to exit.
  
-Finally, let bob take the ownership of the whole ''/​etc/​sv/​example/''​ directory:+Finally, ​login back as root and let bob take the ownership of the whole ''/​etc/​sv/​example/''​ directory:
  
 <​code>​ <​code>​
Line 542: Line 537:
 <!-- Please do not modify anything below, except adding new tags.--> <!-- Please do not modify anything below, except adding new tags.-->
 {{tag>​init runit}} {{tag>​init runit}}
- 

In Other Languages
QR Code
QR Code howtos:slackware_admin:runit (generated for current page)