Compare commits
No commits in common. "7b5d3e82d63651965aaba7fba62bd1d3474338bf" and "1b7b78d9ca881aa8b23c9e1639a7435ba854b3cb" have entirely different histories.
7b5d3e82d6
...
1b7b78d9ca
3 changed files with 12 additions and 31 deletions
40
README.md
40
README.md
|
@ -152,14 +152,12 @@ That sould be it. Have fun!
|
||||||
[misc/](https://basedwa.re/tmtt/feuille/src/branch/main/misc),
|
[misc/](https://basedwa.re/tmtt/feuille/src/branch/main/misc),
|
||||||
[cgi/](https://basedwa.re/tmtt/feuille/src/branch/main/cgi) and
|
[cgi/](https://basedwa.re/tmtt/feuille/src/branch/main/cgi) and
|
||||||
[cron/](https://basedwa.re/tmtt/feuille/src/branch/main/cron))
|
[cron/](https://basedwa.re/tmtt/feuille/src/branch/main/cron))
|
||||||
[service/](https://basedwa.re/tmtt/feuille/src/branch/main/service))
|
|
||||||
* A list of aliases for your users' `~/.{ba,z,k}shrc`
|
* A list of aliases for your users' `~/.{ba,z,k}shrc`
|
||||||
* A CGI script that lets the user send pastes directly from your
|
* A CGI script that lets the user send pastes directly from your
|
||||||
website
|
website
|
||||||
* A sample HTML form for your CGI script
|
* A sample HTML form for your CGI script
|
||||||
* A cron job that deletes expired pastes
|
* A cron job that deletes expired pastes
|
||||||
* A SystemD service file
|
* A cron job that runs **feuille** at startup
|
||||||
* An OpenRC service file
|
|
||||||
|
|
||||||
* Lots of options (see [configuration](#configuration))
|
* Lots of options (see [configuration](#configuration))
|
||||||
* Works on nearly all POSIX-compliant OSes
|
* Works on nearly all POSIX-compliant OSes
|
||||||
|
@ -233,37 +231,19 @@ either on your computer by doing `man feuille` or on the
|
||||||
|
|
||||||
### How do I make feuille run at startup?
|
### How do I make feuille run at startup?
|
||||||
|
|
||||||
We made some service files for that.
|
You can put that in your crontab (by doing `sudo crontab -e`).
|
||||||
|
It will start **feuille** every time the system starts.
|
||||||
|
No need for some fancy service file :DDD
|
||||||
|
|
||||||
#### SystemD
|
Want to stop feuille? `pkill feuille` will do the job.
|
||||||
|
|
||||||
Tweak
|
```
|
||||||
[service/systemd](https://basedwa.re/tmtt/feuille/src/branch/main/service/systemd)
|
@reboot feuille -U https://my.paste.bin
|
||||||
to your liking and copy it to `/etc/systemd/system/feuille.service`.
|
|
||||||
|
|
||||||
Then, do (as root):
|
|
||||||
|
|
||||||
```console
|
|
||||||
# systemctl daemon-reload
|
|
||||||
# systemctl enable feuille
|
|
||||||
# systemctl start feuille
|
|
||||||
```
|
```
|
||||||
|
|
||||||
#### OpenRC
|
See
|
||||||
|
[cron/startup.cron](https://basedwa.re/tmtt/feuille/src/branch/main/cron/startup.cron)
|
||||||
Copy
|
if you'd like to download the cron job.
|
||||||
[service/openrc](https://basedwa.re/tmtt/feuille/src/branch/main/service/openrc)
|
|
||||||
into `/etc/rc.d/feuille`.
|
|
||||||
|
|
||||||
Then, do (as root):
|
|
||||||
|
|
||||||
```console
|
|
||||||
# rcctl enable feuille
|
|
||||||
# rcctl set feuille flags -U https://my.paste.bin
|
|
||||||
# rcctl start feuille
|
|
||||||
```
|
|
||||||
|
|
||||||
Tweak the flags to your liking.
|
|
||||||
|
|
||||||
### How do I remove expired pastes after some time?
|
### How do I remove expired pastes after some time?
|
||||||
|
|
||||||
|
|
1
cron/startup.cron
Normal file
1
cron/startup.cron
Normal file
|
@ -0,0 +1 @@
|
||||||
|
@reboot feuille -U https://my.paste.bin
|
|
@ -5,7 +5,7 @@
|
||||||
# $ systemctl start feuille
|
# $ systemctl start feuille
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=feuille - a fast, dead-simple socket-based pastebin
|
Description=Feuille - a fast, dead-simple socket-based pastebin
|
||||||
After=syslog.target network.target
|
After=syslog.target network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
|
Reference in a new issue