added my Recipes

This commit is contained in:
2024-07-11 14:16:35 +02:00
parent 38bc4f53ac
commit 09b621d929
7118 changed files with 525762 additions and 3 deletions

View File

@@ -0,0 +1,44 @@
From 25f4f8793730ef3d170f1f2bd729a82fd61a4784 Mon Sep 17 00:00:00 2001
From: puneetse <22071208+puneetse@users.noreply.github.com>
Date: Wed, 11 Mar 2020 09:36:51 -0700
Subject: [PATCH] Change PIDFile path from /var/run to /run
/var/run is considered a legacy directory by systemd 239+ and having it in unit files causes a warning to be emitted to the journal.
Upstream-Status: Backport [25f4f8793730ef3d170f1f2bd729a82fd61a4784]
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
prog/init/fancontrol.service | 2 +-
prog/init/sensord.service | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/prog/init/fancontrol.service b/prog/init/fancontrol.service
index 3ac1ed02..43293141 100644
--- a/prog/init/fancontrol.service
+++ b/prog/init/fancontrol.service
@@ -5,7 +5,7 @@ After=lm_sensors.service
[Service]
Type=simple
-PIDFile=/var/run/fancontrol.pid
+PIDFile=/run/fancontrol.pid
ExecStart=/usr/sbin/fancontrol
[Install]
diff --git a/prog/init/sensord.service b/prog/init/sensord.service
index 2448beeb..af2f0ae9 100644
--- a/prog/init/sensord.service
+++ b/prog/init/sensord.service
@@ -5,7 +5,7 @@ After=lm_sensors.service
[Service]
EnvironmentFile=/etc/sysconfig/sensord
Type=forking
-PIDFile=/var/run/sensord.pid
+PIDFile=/run/sensord.pid
ExecStart=/usr/sbin/sensord -i $INTERVAL -l $LOG_INTERVAL -f daemon
[Install]
--
2.17.1

View File

@@ -0,0 +1,47 @@
#!/bin/sh
### BEGIN INIT INFO
# Provides: fancontrol
# Required-Start: $local_fs
# Should-Start:
# Required-Stop: $local_fs
# Should-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: fancontrol initscript
# Description: Starts and controls the fancontrol daemon
### END INIT INFO
PATH=/sbin:/usr/sbin:/bin:/usr/bin
DESC="fan control daemon"
NAME="fancontrol"
FANCONTROL=`which $NAME`
PIDFILE="/var/run/fancontrol.pid"
# Exit if the package is not installed
[ -x "$FANCONTROL" ] || exit 0
case "$1" in
start)
echo -n "Starting $DESC: $NAME... "
start-stop-daemon -S -p $PIDFILE -b -x $FANCONTROL
echo "done."
;;
stop)
echo -n "Stopping $DESC: $NAME... "
start-stop-daemon -K -p $PIDFILE
echo "done."
;;
restart)
echo "Restarting $DESC: $NAME... "
$0 stop
$0 start
echo "done."
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
;;
esac
exit 0

View File

@@ -0,0 +1,49 @@
#! /bin/sh
### BEGIN INIT INFO
# Provides: sensord
# Required-Start: $local_fs
# Should-Start:
# Required-Stop: $local_fs
# Should-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: sensord initscript
# Description: Starts the sensord logging daemon
### END INIT INFO
PATH=/sbin:/usr/sbin:/bin:/usr/bin
DESC="sensors logging daemon"
NAME="sensord"
SENSORD=`which $NAME`
. /etc/init.d/functions || exit 1
. /etc/sensord.conf || exit 1
# Exit if the package is not installed
[ -x "$SENSORD" ] || exit 0
case "$1" in
start)
echo -n "Starting $DESC: $NAME... "
start-stop-daemon -S -x $SENSORD -- $SENSORD_ARGS
echo "done."
;;
stop)
echo -n "Stopping $DESC: $NAME... "
start-stop-daemon -K -x $SENSORD
echo "done."
;;
restart)
echo "Restarting $DESC: $NAME... "
$0 stop
$0 start
echo "done."
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
;;
esac
exit 0