User Tools

Site Tools


alito

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
alito [2018/12/18 17:46] slackalito [2019/11/07 17:58] (current) – external edit 127.0.0.1
Line 1: Line 1:
 Create ''/etc/rc.local'', containing: Create ''/etc/rc.local'', containing:
  
-    #!/bin/sh -e +  #!/bin/sh -e 
-    +  
-    # rc.local +  # rc.local 
-    +  
-    # This script is executed at the end of each multiuser runlevel. +  # This script is executed at the end of each multiuser runlevel. 
-    # Make sure that the script will "exit 0" on success or any other +  # Make sure that the script will "exit 0" on success or any other 
-    # value on error. +  # value on error. 
-    +  
-    # In order to enable or disable this script just change the execution +  # In order to enable or disable this script just change the execution 
-    # bits. +  # bits. 
-    +  
-    # By default this script does nothing. +  # By default this script does nothing. 
-     +   
-    su -l slack -c "VBoxManage startvm alito --type=headless" +  su -l slack -c "VBoxManage startvm alito --type=headless" 
-    exit 0+  exit 0
  
 Change permissions: Change permissions:
  
-    chmod +x /etc/rc.local+  chmod +x /etc/rc.local
  
 Activate it by adding the following content to ''/etc/systemd/system/rc-local.service'': Activate it by adding the following content to ''/etc/systemd/system/rc-local.service'':
  
-    [Unit] +  [Unit] 
-    Description=/etc/rc.local +  Description=/etc/rc.local 
-    ConditionPathExists=/etc/rc.local +  ConditionPathExists=/etc/rc.local 
-     +   
-    [Service] +  [Service] 
-    Type=forking +  Type=forking 
-    ExecStart=/etc/rc.local start +  ExecStart=/etc/rc.local start 
-    TimeoutSec=0 +  TimeoutSec=0 
-    StandardOutput=tty +  StandardOutput=tty 
-    RemainAfterExit=yes +  RemainAfterExit=yes 
-    SysVStartPriority=99 +  SysVStartPriority=99 
-     +   
-    [Install] +  [Install] 
-    WantedBy=multi-user.target+  WantedBy=multi-user.target
  
 Enable the ''rc-local'' script on boot: Enable the ''rc-local'' script on boot:
  
-    systemctl enable rc-local+  systemctl enable rc-local
   
 Start the ''rc-local'' script: Start the ''rc-local'' script:
  
-    systemctl start rc-local.service+  systemctl start rc-local.service
   
 Check if any error occurred while starting the service: Check if any error occurred while starting the service:
  
-    systemctl status rc-local.service+  systemctl status rc-local.service
  
alito.1545155176.txt.gz · Last modified: 2019/11/07 17:58 (external edit)