Search
 
SCRIPT & CODE EXAMPLE
 

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 #####
Comment

Automatically run program on Linux startup via systemd

$ sudo systemctl is-enabled mysql
disabled
Comment

Automatically run program on Linux startup via systemd

$ sudo systemctl enable mysql
Synchronizing state of mysql.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable mysql
Created symlink /etc/systemd/system/multi-user.target.wants/mysql.service → /lib/systemd/system/mysql.service.
Comment

Automatically run program on Linux startup via systemd

$ sudo systemctl is-enabled mysql
enabled
Comment

PREVIOUS NEXT
Code Example
Shell :: git Automatic merge failed; fix conflicts and then commit the result 
Shell :: Git create a new repository on the command line 
Shell :: installing mutillidae in kali 
Shell :: How to Block Ports in UFW Ubuntu Firewall 
Shell :: how to clone a specific commit from github 
Shell :: kdiff3 download linux 
Shell :: change resolution of a video 
Shell :: jenkins execute shell script on remote host using ssh 
Shell :: awk field separator 
Shell :: upload git repository to github 
Shell :: flutter signingthe app 
Shell :: check if string starts with powershell 
Shell :: latex number listing as equation 
Shell :: boostrap install 
Shell :: how to install pipenv 
Shell :: adding to git 
Shell :: installing sonarqube on ubuntu 
Shell :: powershell -file 
Shell :: mkdir create all subdirectories 
Shell :: install pycharm ubuntu 
Shell :: how to clone all git repositories 
Shell :: echo to add line to file 
Shell :: show hidden files mac 
Shell :: install mongodb ubuntu 
Shell :: dockerfile env 
Shell :: git rebase onto 
Shell :: sngrep printed lines correctly 
Shell :: bashub 
Shell :: start-process argumentlist with spaces powershell 
Shell :: postgres change deafult encode 
ADD CONTENT
Topic
Content
Source link
Name
5+3 =