Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
Fan-Control-Daemon
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
CeRiAl
Fan-Control-Daemon
Commits
eda84439
Commit
eda84439
authored
Oct 20, 2012
by
Daniel Graziotin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #26
parent
ac4178b3
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
14 deletions
+8
-14
README.md
README.md
+1
-1
mbpfan.upstart
mbpfan.upstart
+2
-13
daemon.c
src/daemon.c
+5
-0
No files found.
README.md
View file @
eda84439
...
@@ -19,7 +19,7 @@ This enhanced version assumes any number of processors and fans (max. 10).
...
@@ -19,7 +19,7 @@ This enhanced version assumes any number of processors and fans (max. 10).
Supported GNU/Linux Distributions
Supported GNU/Linux Distributions
---------------------------------
---------------------------------
We provide scripts to to load mbpfan daemon at system boot for many distros.
We provide scripts to to load mbpfan daemon at system boot for many distros.
Please note that the support is provided by volunteers. mbpfan needs test and bug reports.
Please note that the support is provided by volunteers. mbpfan needs test
s
and bug reports.
Supported distributions:
Supported distributions:
...
...
mbpfan.upstart
View file @
eda84439
...
@@ -12,15 +12,4 @@ umask 022
...
@@ -12,15 +12,4 @@ umask 022
console log
console log
pre-start script
exec /usr/sbin/mbpfan -f
test -x /usr/sbin/mbpfan || { stop; exit 0; }
# A way to turn pidfile writing off would be nice. That or mbpfan
# could check for staleness before refusing to control your fans.
rm -f /var/run/mbpfan.pid
end script
# Starting mbpfan in the foreground without being in an interactive tty currently
# seems to segfault, so expect forkage.
expect fork
exec /usr/sbin/mbpfan
src/daemon.c
View file @
eda84439
...
@@ -87,6 +87,11 @@ void signal_handler(int signal)
...
@@ -87,6 +87,11 @@ void signal_handler(int signal)
delete_pid
();
delete_pid
();
//TODO: free resources
//TODO: free resources
exit
(
0
);
exit
(
0
);
case
SIGSTOP
:
syslog
(
LOG_WARNING
,
"Received SIGSTOP signal."
);
delete_pid
();
//TODO: free resources
exit
(
0
);
default:
default:
syslog
(
LOG_WARNING
,
"Unhandled signal (%d) %s"
,
signal
,
strsignal
(
signal
));
syslog
(
LOG_WARNING
,
"Unhandled signal (%d) %s"
,
signal
,
strsignal
(
signal
));
break
;
break
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment