2015年2月9日 星期一

[Archlinux] Execute the script at the booting time

touch /etc/systemd/system/sysinit.target.wants/lnDataTohome.service
Add following script

[Unit]
Description=My script

[Service]
ExecStart=/usr/bin/ln -sv /home/happy/data /data/

[Install]
WantedBy=sysinit.target.wants


Reference:
1. Arch Linux run script a minute after boot
2. How can I make a script start during the boot process?

0 意見:

張貼留言