This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MirrorSyncDaemon | |
#run | |
#check_status | |
deletes the PID_FILE if it exists but contains invalid PID | |
does nothing and continues with the script if PID_FILE does not exist | |
#check_pid_status | |
Process(65987) is already running. | |
exits with exit code:1 if process is already running | |
Process with pid=65987 is already running but is owned by a different user | |
exits with exit code:1 if process is already running and is owned by a different user |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def init_workers | |
begin | |
size = get_worker_count | |
worker_pool = WorkerPool.new(size) | |
at_exit { | |
worker_pool.shutdown | |
} | |
rescue RuntimeError => e | |
log e | |
exit(1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Author Marz | |
### BEGIN INIT INFO | |
# Provides: Mirror rsync | |
# Required-Start: $local_fs $network $named | |
# Required-Stop: $local_fs $network $named | |
# Short-Description: start and stop mirror-rsync | |
# Description: mirror-rsync will will sync our local mirror repository with their corresponding upstreams | |
### END INIT INFO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Author Marz | |
### BEGIN INIT INFO | |
# Provides: Mirror rsync | |
# Required-Start: $local_fs $network $named | |
# Required-Stop: $local_fs $network $named | |
# Short-Description: start and stop mirror-rsync | |
# Description: mirror-rsync will will sync our local mirror repository with their corresponding upstreams | |
### END INIT INFO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stop() { | |
if [ $UID -ne 0 ] ; then | |
echo "User has insufficient privilege." | |
exit 4 | |
fi | |
echo -n $"Stopping $prog: " | |
if [ -n "`pidfileofproc $exec`" ]; then | |
killproc $exec | |
RETVAL=3 | |
else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
### BEGIN INIT INFO | |
# Provides: Mirror rsync | |
# Required-Start: $local_fs $network $named | |
# Required-Stop: $local_fs $network $named | |
# Short-Description: start and stop mirror-rsync | |
# Description: mirror-rsync will will sync our local mirror repository with their corresponding upstreams | |
### END INIT INFO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
### BEGIN INIT INFO | |
# Provides: Mirror rsync | |
# Required-Start: $local_fs $network $named | |
# Required-Stop: $local_fs $network $named | |
# Short-Description: start and stop mirror-rsync | |
# Description: mirror-rsync will will sync our local mirror repository with their corresponding upstreams | |
### END INIT INFO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
driver: | |
name: vagrant | |
provisioner: | |
name: chef_zero | |
verifier: | |
name: inspec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ter.java:92) | |
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66) | |
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:52) | |
at org.hibernate.tool.hbm2ddl.DatabaseMetadata.getTableMetadata(DatabaseMetadata.java:128) | |
at org.hibernate.cfg.Configuration.generateSchemaUpdateScript(Configuration.java:1202) | |
at org.hibernate.tool.hbm2ddl.SchemaUpdate.execute(SchemaUpdate.java:187) | |
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:375) | |
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1872) | |
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:860) | |
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:779) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15:38:52,480 INFO MuleClient:230 - Using existing MuleContext: org.mule.DefaultMuleContext@fb52041 | |
15:38:52,500 INFO AbstractLifecycleManager:36 - Initialising: 'connector.VM.mule.default.dispatcher.406527627'. Object is: VMMessageDispatcher | |
15:38:52,500 INFO AbstractLifecycleManager:48 - Starting: 'connector.VM.mule.default.dispatcher.406527627'. Object is: VMMessageDispatcher | |
15:38:53,568 INFO DefaultTransportServiceDescriptor:390 - Loading default outbound transformer: org.mule.transport.http.transformers.ObjectToHttpClientMethodRequest | |
15:38:53,578 INFO DefaultTransportServiceDescriptor:410 - Loading default response transformer: org.mule.transport.http.transformers.MuleMessageToHttpResponse | |
15:38:53,579 INFO DefaultTransportServiceDescriptor:390 - Loading default outbound transformer: org.mule.transport.http.transformers.ObjectToHttpClientMethodRequest | |
15:38:53,580 INFO AbstractLifecycleManager:36 - Initialising: 'connector.http.mule.default.dispatcher.130 |