HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- STARTUP SCRIPTS
Operating System - Linux
1831346
Members
3076
Online
110024
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2004 01:12 AM
08-23-2004 01:12 AM
Can someone tell me how to make mysql and apache startup automatically at bootup time? I am running @init5
UNIX IS GOOD
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2004 01:28 AM
08-23-2004 01:28 AM
Solution
# chkconfig --list
this shows the status of your services at boot time for each run level.
# chkconfig --add httpd
# chkconfig --add mysql
this adds apache and mysql services (if they weren't show by chkconfig --list)
# chkconfig --level 5 httpd on
# chkconfig --level 5 mysql on
this starts these services at run level 5.
Ciao
Claudio
this shows the status of your services at boot time for each run level.
# chkconfig --add httpd
# chkconfig --add mysql
this adds apache and mysql services (if they weren't show by chkconfig --list)
# chkconfig --level 5 httpd on
# chkconfig --level 5 mysql on
this starts these services at run level 5.
Ciao
Claudio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2004 02:21 AM
08-27-2004 02:21 AM
Re: STARTUP SCRIPTS
You can also add in /etc/rc5.d/ a symbolic link to /etc/init.d/mysqld
/etc/rc5.d/>ln -s /etc/init.d/mysqld S99mysql
/etc/rc5.d/>ln -s /etc/init.d/httpd S99http
In that directory there are other link to other services and the number after S (start) indicates the order in which the servise start.
You can also do this in run level 3,if you want.
For stopping than service when you reboot or halt the machine you must add symbolic link in /etc/rc0.d/ e /etc/rc6.d/ whit this command :
/etc/rc0.d/>ln -s /etc/init.d/mysqld K99mysql
/etc/rc0.d/>ln -s /rtc/init.d/httpd K99http
in same way in /etc/rc6.f/ directory.
Bye,F.
/etc/rc5.d/>ln -s /etc/init.d/mysqld S99mysql
/etc/rc5.d/>ln -s /etc/init.d/httpd S99http
In that directory there are other link to other services and the number after S (start) indicates the order in which the servise start.
You can also do this in run level 3,if you want.
For stopping than service when you reboot or halt the machine you must add symbolic link in /etc/rc0.d/ e /etc/rc6.d/ whit this command :
/etc/rc0.d/>ln -s /etc/init.d/mysqld K99mysql
/etc/rc0.d/>ln -s /rtc/init.d/httpd K99http
in same way in /etc/rc6.f/ directory.
Bye,F.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP