Bonjour,
Lors du lancement du service tomcat soud Linux, j'ai le message suivant :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
root@ubuntu:/home/hubert# ./services.sh 
 * Stopping Tomcat servlet engine tomcat7                                                                                          [ OK ] 
 * Starting Tomcat servlet engine tomcat7                                                                                                       
touch: cannot touch `/var/lib/tomcat7/logs/catalina.out' : Read-only file system
chown: changing ownership of `/var/lib/tomcat7/logs/catalina.out' : Read-only file system                                [ fail ]
Si je regarde les droits sur les repertoires Tomcat :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
root@ubuntu:/home/hubert# ls -l /var/lib/tomcat7/
total 16
drwxr-xr-x 3 tomcat7 tomcat7 4096 Jan  3  2017 common
lrwxrwxrwx 1 root    root      12 Apr  1  2013 conf -> /etc/tomcat7
lrwxrwxrwx 1 root    root      24 Jan  1  2010 logs -> ../../../mnt/tomcat/log/
drwxr-xr-x 3 tomcat7 tomcat7 4096 Jan  3  2017 server
drwxr-xr-x 3 tomcat7 tomcat7 4096 Jan  3  2017 shared
drwxrwxr-x 4 tomcat7 tomcat7 4096 Jan  1 01:02 webapps
lrwxrwxrwx 1 root    root      19 Apr  1  2013 work -> ../../cache/tomcat7
 
root@ubuntu:/home/hubert# ls -l /mnt/tomcat/
total 32
drwxr-xr-x 2 tomcat7 tomcat7 32768 Jan  1  2010 log
Et sur les fichiers de logs :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
root@ubuntu:/home/hubert# ls -l /mnt/tomcat/log/
total 1856
-rwxr-xr-x 1 tomcat7 tomcat7  116998 Jan  1 01:00 PortailF6KCZ.log
-rwxr-xr-x 1 tomcat7 tomcat7 1570927 Jan  1 01:00 ServicesF6KCZ.log
-rwxr-xr-x 1 tomcat7 tomcat7   50595 Jan  1 01:00 catalina.2010-01-01.log
-rwxr-xr-x 1 tomcat7 tomcat7   53311 Jan  1 01:00 catalina.out
-rwxr-xr-x 1 tomcat7 tomcat7       0 Jan  1  2010 localhost.2010-01-01.log
-rwxr-xr-x 1 tomcat7 tomcat7   33898 Jan  1 01:04 localhost_access_log.2010-01-01.txt
Je pense que le problème vient que le lancement du service ne se fait pas sous l'utilisateur tomcat7, mais comment le corriger?