Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 8867 - rc-update does not check every return code from shell commands
Summary: rc-update does not check every return code from shell commands
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-07 15:02 UTC by Claer
Modified: 2002-10-12 13:45 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Claer 2002-10-07 15:02:43 UTC
Hello,

I had a small issue adding a new service to startup. As often copy/paste of logs
are better than long sentenses, here is the shell output :

platon /etc/runlevels/default # rc-update add samba default
 * samba added to runlevel default...
 * Caching service dependencies...
ln: creating symbolic link `/mnt/.init.d/need/sysklogd/atd' to
`/etc/init.d/atd': No space left on device
ln: creating symbolic link `/mnt/.init.d/need/sysklogd/dcron' to
`/etc/init.d/dcron': No space left on device                                   
         [ ok ]
 * rc-update complete.

platon /etc/runlevels/default # df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda2             3.9G  1.6G  2.2G  42% /
tmpfs                 1.0M 1016K  8.0K 100% /mnt/.init.d
/dev/hda1              16G   13G  2.4G  85% /home/ftp

So the script tries to create a link and issue an error because of the lack of
space onto tmpfs disc.

Is it possible to check the return value of 'ln' line 71 to not have a beautiful
"ok" on script error ? :-)

Thanks

Claer
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2002-10-12 13:45:23 UTC
Fixed on CVS, thanks.