User Tools

Site Tools


66-services

List of Services

The following is not an exhaustive list (table 1) of current services available through the obarun repository [observice]. A service script must be installed so the service can be enabled, started, logged, and supervised by 66. For example together with dhcpcd you must install dhcpcd-66serv, and to enable the service follow the instructions at 66-enable.

Sample Root Service

Below (table 2) you can see a sample of a service script (dhcpcd in this case) and you can make your own service up if needed.

Sample User Service

Also on (table 3) you will find a sample of a user level service.

Template of a 66 Service

On (table 4) you will find the template used to create a service file of your own. Fields that are not used can be omitted or just have a blank value.

Table 1

% pacman -Sl observice

acpid-66serv
alsa-66serv
bluetoothd-66serv
boot-66serv
boot-user@-66mod
connmand-66serv
consolekit-66serv
crond-66serv
cupsd-66serv
dbus-66serv
dhclient-66serv
dhcpcd-66serv
dmraid-66serv
dockerd-66serv
haveged-66serv
httpd-66serv
jackd-66serv
libvirtd-66serv
lightdm-66serv
lighttpd-66serv
lvm2-66serv
metalog-66serv
mysqld-66serv
networkmanager-66serv
nfs-utils-66serv
nginx-66serv
ntpclient-66serv
ntpd-66serv
openntpd-66serv
openvswitch-66serv
pgsql-initdb-66serv
php-fpm-66serv
postgresql-66serv
pulseaudio-66serv
samba-66serv
sddm-66serv
spamd-66serv
sshd-66serv
tor-66serv
tty@-66serv
ufw-66serv
wicd-66serv
wpa_supplicant-66serv
xdg-user-dirs-66serv
zfs-import-66serv
zfs-import-cache-66serv
zfs-import-scan-66serv
zfs-mount-66serv

Table 2

[main]
@type = classic
@version = 0.2.0
@description = "dhcpcd daemon"
@user = ( root )
@options = ( log env )

[start]
@build = auto
@execute = ( execl-cmdline -s { dhcpcd ${cmd_args} -f ${conf_dir}/${conf_file} } )

[stop]
@build = auto
@execute = ( execl-cmdline -s { dhcpcd ${cmd_args_stop} } )

[environment]
cmd_args=!-B
cmd_args_stop=!-x
conf_dir=!/etc
conf_file=!dhcpcd.conf

Table 3

[main]
@type = oneshot
@name = xdg-user-dirs
@description = "Well-known user directory creation"
@user = ( user )

[start]
@build = auto
@execute = ( xdg-user-dirs-update )

Table 4


    [main]
    @type = classic,bundle,longrun,oneshot
    @name = 
    @description = ""
    @depends = ()
    @optsdepends = ()
    @extdepends = ()
    @contents = ()
    @options = ( log env pipeline )
    @flags = ( down nosetsid )
    @notify = 
    @user = ()
    @timeout-finish =
    @timeout-kill =
    @timeout-up =
    @timeout-down =
    @maxdeath = 
    @down-signal =
    @hiercopy = ()
    
    [start]
    @build = auto,custom
    @runas = 
    @shebang = "/path"
    @execute = ()
    
    [stop]
    @build = auto,custom
    @runas = 
    @shebang = "/path"
    @execute = ()
    
    [logger]
    @build = auto,custom
    @runas = 
    @shebang = "/path"
    @destination = /path
    @backup = 
    @maxsize = 
    @timestamp = 
    @timeout-finish = 
    @timeout-kill =
    @execute = ()
    
    [environment]
    MYKEY=myvalue
    ANOTHERKEY=!anothervalue

66-services.txt · Last modified: 2020/11/30 14:26 by obarun