Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

Automatically run program on Linux startup via systemd

$ sudo systemctl list-unit-files --type=service
[sudo] password for user:
UNIT FILE                              STATE
accounts-daemon.service                enabled
apparmor.service                       enabled
apport-autoreport.service              static
apport-forward@.service                static
apport.service                         generated
apt-daily-upgrade.service              static
apt-daily.service                      static
atd.service                            enabled
autovt@.service                        enabled
blk-availability.service               enabled
bootlogd.service                       masked
bootlogs.service                       masked
bootmisc.service                       masked
checkfs.service                        masked
checkroot-bootclean.service            masked
checkroot.service                      masked
cloud-config.service                   enabled
cloud-final.service                    enabled
cloud-init-local.service               enabled
cloud-init.service                     enabled
console-getty.service                  disabled
##### snipped #####
Source by www.simplified.guide #
 
PREVIOUS NEXT
Tagged: #Automatically #run #program #Linux #startup #systemd
ADD COMMENT
Topic
Name
7+2 =