![]() ![]() Mark it as executable: chmod +x /etc/rc.local You can read about it online and create a file of your prefrence but for the sake of simplicity I'll just use this: It'll create a symlink to run the service on startup (according to one person on Archlinux forum, you don't need this command to enable it because if the file exists, the system will automatically enable it, but just in case.)Īnd finally you can add the rc.local script to /etc/ directory. I did that slight bit of modification as follows:Ĭreate a text file /etc/systemd/system/rvice using whatever tool you like, I'm using vim so it'll be: sudo vim /etc/systemd/system/rviceĪfter that, run: sudo systemctl enable rvice Just a slight modification from the answer gave, for those if you don't already have the rc.local in those folders ( /etc/ or /etc/rc.d/), like in Archlinux, you'll have to create your own. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |