Run command on startup

This was tested on Redhat

Append the below line to /etc/rc.local

/sbin/runuser -s /bin/sh -l nobody -c '/etc/haproxy/start-hap'

where

  • s - run in shell
  • l - run as user
  • c - command to run

Table of Contents
QR Code
QR Code tech:linux:startup_run (generated for current page)