Bonsoir ,

Bon je vous demande pardon d'avance je ne suis même pas sur de poster la ou il faut ...bref .

Voila je fais l'installation de boinc sur fédora via un tutoriel x , l'application fonctionne et j'ai même trouver grace a un linuxien un alias bien pratique pour éviter d'avoir a taper la ligne de commande pour le lancement .

Donc je suis plutôt happy , la ou je bute c'est sur la création en tant que service j'ai fait les trois quart de la manip lorsque je stop a ces trois lignes ...

1. chkconfig --add boincctl
2. chkconfig --list boincctl
3. chkconfig --level 2345 boincctl on

des la premiére ligne cela me répond :

bash: chkconfig: command not found

en gros l'outil chkconfig ne semble pas connu , je suis bien en root .





Vu que j'arrive sur fédora ..ma question est la suivante cet outil est valable sur ce systéme ? ou une autre commande existe afin que je puisse terminée ?


merci
Nope ben ça ne change pas grand chose le tiret ...pour détailler ma manipulation :

je me suis logger avec su - (donc plus le tiret) cette fois , aller dans cd /etc/init.d et fais un petit ls pour voire si le fichier boincctl étais bien la , de la j'ai repris la ou je m'en étè arreter c'est à dire en rendant le fichier executable et en refaisant la premiére des trois commande citer plus haut et en croisant fort les doigts . :roll:

résultat de la commande : le service boincctl ne prend pas en charge chkconfig

c'est dommage si prés du but rrr sob
Il va falloir adapter ton fichier boincctl de façon à ce que chkconfig le digère mieux... Peux-tu le poster ?
oui sure , merci de ton aide pica 🙂

le Voici :

[c] 1. #!/bin/bash
2. # description: Boinc - A little script for starting boinc as a system service
3. # chkconfig: 2345 90 25
4. # pidfile: /var/run/boinc.pid
5. # config: /etc/boinc.conf
6.
7. # boincctl - Control boinc. Stop it/Start it/Restart it. Originally
8. # meant to be used as a boot time script so that boinc starts
9. # at boot time, but can be used any time. For a boot time script
10. # put this in /etc/init.d and make the appropriate links from
11. # the appropriate run level areas (ie. /etc/rc3.d). (This was
12. # developed on RedHat 9 so I know what the boot areas are there.
13. # It should also work on Solaris, I'm not familiar with other
14. # flavors of Linix/UNIX.)
15.
16. # Author: Charles Dennett/Rochester, NY USA.
17. # Email: dennett@rochester.rr.com
18. # Date: December 12, 2003.
19. # Version: 1.0
20. #
21. # History: Version 1.1. May 20. 2004.
22. # Update stop function to use SIGTERM (15).
23. # Version 1.2. September 18, 2004
24. # Comments about functions.
25. #
26. # Comment: Copyright by the author. Feel free to make modifications.
27. # However, please keep these comments intact.
28.
29. # Use: To start: boincctl start
30. # To stop: boincctl stop
31. # To restart: boincctl restart
32. # Status: boincctl status
33.
34. #
35. # Variables that will need to be configured.
36. #
37. # BOINC_HOME: The directory where boinc will run. It should be run
38. # in its own directory to keep its files and subdirectories
39. # separate form others.
40. #
41. # BOINC_BIN: The full path to the boinc executable.
42. #
43. # RUN_AS: Username that boinc is to run as.
44. #
45. # BOINC_OUT: File to direct output from boinc. If you don't want this,
46. # set it to /dev/null.
47. #
48. # BOINC_PARMS: Any command line parameters for boinc you wish to pass to
49. # it. If you don't want any, simply use a null list ("" ).
50. #
51. # FUNCT: Should be use if your distribution is not redhat or debian
52. # based. Can be set to pkill to use pkill or killproc to use
53. # killproc to kill the client.
54.
55. BOINC_HOME=/home/pingus/BOINC
56. BOINC_BIN=/home/pingus/BOINC/boinc
57. RUN_AS=pingus
58. BOINC_OUT=/dev/null
59. BOINC_ERR=/dev/null
60. BOINC_PARMS="-return_results_immediately -redirectio"
61. #BOINC_PARMS="-allow_remote_gui_rpc"
62. #BOINC_PARMS="-return_results_immediately"
63. #BOINC_PARMS="-return_results_immediately -allow_remote_gui_rpc"
64. #FUNCT=
65.
66. # Functions This is for RedHat 9. Don't know if it exists in other
67. # flavors of *nix. If this does not work for you, simply comment it out
68. # and fix the stop function below so that it does not use the killproc
69. # function since killproc is defined in the functions file. pkill might
70. # be a good choice. Examine other boot scripts to see how they do it.
71.
72. if [ -e /etc/debian_version ]
73. then
74. DISTRIB="debian"
75. elif [ -e /etc/redhat_version ];
76. then
77. DISTRIB="redhat"
78. elif [ -e /etc/redhat-release ];
79. then
80. DISTRIB="redhat"
81. elif [ -e /etc/fedora-release ];
82. then
83. DISTRIB="fedora"
84. fi
85.
86. if [ "$DISTRIB" = "debian" ]
87. then
88. FUNCT=pkill
89. elif [ "$DISTRIB" = "redhat" ] || [ "$DISTRIB" = "fedora" ];
90. then
91. FUNCT=killproc
92. fi
93.
94. if [ ! -n "$FUNCT" ] && [ ! -n "$DISTRIB" ]
95. then
96. echo "BOINCCTL: Unsupported distribution, please check usability of pkill or killproc and set FUNCT="
97. exit 1
98. fi
99.
100. if [ "$FUNCT" = "killproc" ]
101. then
102. . /etc/init.d/functions
103. fi
104.
105. # No other changes needed below this, most likely.
106.
107. start()
108. {
109. echo -n "Starting BOINC..."
110. eval $SU_CMD
111. echo " done."
112. }
113.
114. stop()
115. {
116. echo -n "Stopping BOINC..."
117.
118. if [ "$FUNCT" = "pkill" ]
119. then
120. pkill -15 `basename $BOINC_BIN`
121. fi
122.
123. if [ "$FUNCT" = "killproc" ]
124. then
125. killproc `basename $BOINC_BIN` -15
126. fi
127.
128. echo " done."
129. }
130.
131. restart()
132. {
133. stop
134. echo "Be patient. Waiting 10 seconds for all to stop."
135. sleep 10
136. start
137. }
138.
139. #----------------------------------------------------------------------------
140. #
141. # Start of mainline code
142. #
143.
144. # If the user running this script is not the user we want boinc to run as, set
145. # up the su command so that we can become that user. Note, we will have to
146. # know this user's password. If this script is run at boot time, it is root
147. # that is running this script and no password is required.
148.
149. WHO_AM_I=`whoami`
150. CMD="$BOINC_BIN $BOINC_PARMS >> $BOINC_OUT 2>> $BOINC_ERR &"
151.
152. if [ "$WHO_AM_I" != "$RUN_AS" ]; then
153. SU_CMD="su $RUN_AS -c \"$CMD\""
154. else
155. SU_CMD=$CMD
156. fi
157.
158.
159.
160. # Go to where we want boinc to run
161.
162. cd $BOINC_HOME
163.
164. case "$1" in
165. start)
166. start
167. ;;
168. stop)
169. stop
170. ;;
171. restart)
172. restart
173. ;;
174. status)
175. echo "What do I do here for status?"
176. tail -20 $BOINC_OUT
177. ;;
178. *)
179. echo "Usage: `basename $0` start|stop|restart|status"
180. exit 1
181. ;;
182. esac[/c]

Ensuite j'ai remplacé les pingus par mon nom (entre les lignes 55-60) , déplacer le fichier dans init.d et rendu exécutable avec chmod 0755 boincctl

et la suite tu la connait je bloque hehe




(ps en faite je suis sur ce tuto boinc tuto forum boinc