aboutsummaryrefslogtreecommitdiffstats
local service

goetia-freebsd
goetia
Software
0x53.net

The local service

local is a oneshot service.

  • It tries to execute all files /etc/local.d/*.up when it is started (typically during boot).
  • It tries to execute all files /etc/local.d/*.down when it is stopped (typically during shutdown).

The files are executed in random order and in parallel.

Examples

An executable file /etc/local.d/echo.up with the content

#!/bin/execlineb -P

echo "example"
        		
would be executed and write "example" to the system log upon starting the service local.

An executable file /etc/local.d/echo.down with the content

#!/bin/execlineb -P

echo "example"
        		
would be executed and write "example" to the system log upon stopping the service local.