How to run a startup script using systemd



12
22675

Today's tip is how to run a startup script using systemd. If everything you need is to run a simple startup script when you boot into Linux, there's no need to become an expert in systemd. Below are the files I used on this video. /usr/local/sbin/my-startup.sh: #!/bin/sh hdparm -Y /dev/sdb /etc/systemd/system/my-startup.service: [Unit] Description=Startup [Service] ExecStart=/usr/local/sbin/my-startup.sh [Install] WantedBy=multi-user.target

Published by: Linux Spot Published at: 6 years ago Category: علمی و تکنولوژی