Commit initial: récupération et tri rapide
This commit is contained in:
commit
a52829f96c
104 changed files with 11892 additions and 0 deletions
15
systemd-units/hdparm-custom.service
Normal file
15
systemd-units/hdparm-custom.service
Normal file
|
@ -0,0 +1,15 @@
|
|||
[Unit]
|
||||
Description=Custom hdparm settings
|
||||
ConditionPathExists=/sbin/hdparm
|
||||
|
||||
[Service]
|
||||
# -M = accoustic (128=quiet, 254=fast)
|
||||
ExecStart=/sbin/hdparm -M 128 /dev/sdb
|
||||
ExecStart=/sbin/hdparm -M 128 /dev/sdc
|
||||
# -S = standy timeout (252 = 21 minutes)
|
||||
ExecStart=/sbin/hdparm -S 252 /dev/sdb
|
||||
ExecStart=/sbin/hdparm -S 252 /dev/sdc
|
||||
Type=oneshot
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
16
systemd-units/screen-session-at-boot.service
Normal file
16
systemd-units/screen-session-at-boot.service
Normal file
|
@ -0,0 +1,16 @@
|
|||
[Unit]
|
||||
Description=Starting some apps into a screen session
|
||||
After=network-online.target auditd.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
# Note : add 'vm.nr_hugepages = 128' to sysctl.conf
|
||||
LimitMEMLOCK=268435456
|
||||
User=miner
|
||||
Group=miner
|
||||
ExecStart=/usr/bin/screen -S bootstartedsession -t daemond -dm /bin/dash -c "cd /home/buggy/my-app/ && ./daemond"
|
||||
ExecStart=/usr/bin/screen -S bootstartedsession -X screen -t peon1 -dm /bin/dash -c "cd /home/buggy/my-app/ && ./build/bin/peon"
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
Loading…
Add table
Add a link
Reference in a new issue