pihanepi/orchestrating/README.org
2026-06-04 13:11:48 +02:00

32 lines
875 B
Org Mode

#+OPTIONS: toc:nil
* INIT SYSTEM
** ROOT SERVICES (Currently none!)
=<service>.sh= to be symlinked to =/etc/init.d/podman-containers=
** USER SERVICES AND RUNLEVELS
=.config= folder to be symlinked to =~=
** * XDG VARIABLES AND RUNNING USER SERVICES ON LOGIN
=.profile= to be symlinked to =/home/$USER/.profile=
** RUN USERS SERVICES ON BOOT
Symlink =/etc/init.d/user= to =/etc/init.d/user.$usernames=. After add, add the latter service with =rc-update= as root.
** IF <USER> HAS PASSWORD
Add the following to a new file in =/etc/doas.d/=:
#+begin_src shell
permit nopass <user> as <user>
permit nopass root as <user>
#+end_src
* Timed cron jobs
Make sure =crond= is running. Then, add jobs with the following command as such:
#+begin_src shell
#crontab -u $USER -e
@weekly /home/$user/pihanepi/orchestrating/cronjobs/forgejo-clone/forgejo-clone.sh
#+end_src