RISE
Gustav is from Incron, an Oceanworld were you learn to swim and dive before you learn to walk.
For an Ogryn like Gustav, who could hold his breath for a very long time, this was quite liberating, a near weightless feeling
seen from United States

seen from United States
seen from China
seen from United States

seen from Malaysia
seen from China
seen from Lithuania

seen from United States
seen from China
seen from China
seen from Thailand
seen from United States
seen from United States

seen from United States

seen from United States
seen from Oman
seen from United States
seen from Japan
seen from United States

seen from United States
RISE
Gustav is from Incron, an Oceanworld were you learn to swim and dive before you learn to walk.
For an Ogryn like Gustav, who could hold his breath for a very long time, this was quite liberating, a near weightless feeling

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch • No registration required • HD streaming
When deploying ASP.NET Core applications on Linux servers, it’s essential to ensure that the application restarts automatically after each deployment, as well as system updates or unexpected crashes: unfortunately, the ASP.NET Core doesn't provide such a feature out-of-the-box.One of the best ways I found to fill this gap is by using incron, a freely available cron-like system that triggers custom actions based on filesystem events.In this article, we’ll walk through the steps to set up automatic restarts for your ASP.NET Core app using incron.PrerequisitesBefore proceeding, make sure you have the following prerequisites: - A Linux server where your ASP.NET Core app is deployed. - The ASP.NET Core app is already configured and running (following this official guide or a similar approach based on kestrel).Set Up Auto-Restart with IncronFirst, install incron on your Linux server if it’s not already installed. You can do this using the package manager specific to your distribution (e.g., apt, yum, or dnf).For example, if you use Ubuntu 18+, you can use following command:apt install incronOnce done, create an incron job that monitors changes in a specific directory (where your ASP.NET Core app resides). For example, let’s assume your app is located in /var/www/myapp and runs using a kestrel service called myapp.service.Edit the incron table using the command:incrontab -eAdd the following line to the table:/var/www/myapp IN_CLOSE_WRITE systemctl restart myapp.serviceThis line specifies that whenever a file in the /var/www/myapp directory is closed for writing (i.e., updated), it will trigger the command to restart the myapp.service.After adding the incron job, reload the incron daemon to apply the changes:systemctl restart incronTesting it upNow that incron is up and running, you just have to see if the auto-restart task we have added works like expected.To quickly test it, make a change to your ASP.NET Core app (e.g., update a configuration file or modify a code file). Save the changes, and incron should automatically restart your app.Fine tuningAuto-restarting the app on any file change might be a bit too much: for example, if your deployment task is not fast, you'll risk to face multiple reloads before completing the deployment, which is definitely an undesirable effect. To mitigate such behavior, you might think to limit the "reload task" to a limited number of relevant files that will always get modified, such as: - the app's main DLL file - myapp.dll (in our example) - the app's configuration file - appsettings.jsonHere's the modified configuration lines to add in the incrontab file, replacing the previous one:/var/www/myapp/myapp.dll IN_CLOSE_WRITE sleep 30 && sudo systemctl restart myapp.service/var/www/myapp/appsettings.json IN_CLOSE_WRITE sleep 30 && sudo systemctl restart myapp.serviceWith such settings, your web app will be automatically reloaded if (and only if) the myapp.dll or appsettings.json files are modified - which should happen only once for each deployment task. it's also worth noting that we added a sleep 30 command switch to each configuration line: that switch instructs incron to perform the reload after a 30-second sleep time, which will (hopefully) increase the chance that the deployment will be complete. Needless to say, feel free to change that sleep time as you see fit.Additional Considerations - Permissions: Ensure that the user running incron has sufficient permissions to restart the ASP.NET Core app. You might need to adjust ownership or permissions on relevant files and directories. - Logging: Set up proper logging for your ASP.NET Core app to track any issues related to automatic restarts. - Monitoring: Monitor the incron logs and your app’s behavior to ensure smooth restarts.ConclusionBy configuring incron to monitor changes in your ASP.NET Core app’s directory, you can achieve automatic restarts after deployment or crashes. This ensures that your app remains up-to-date and responsive without manual intervention.Remember to adapt the paths and service names according to your specific setup. Happy coding!Additional references - Stack Overflow: How to restart ASP.NET Core app programmatically - Configure the ASP.NET Core application to start automatically - Run ASP.NET Core app under Linux on startup
[플밍] cron과 incron 한글 문제
$ locale > /etc/default/locale
이 커맨드로 디폴트 환결설정을 세팅해 주면 된다. cron/incron이 실행될 때 이것을 읽는가 보다.
service incron restart 하는 것을 잊지 않길..
incron 은 별로 자료가 없지만 cron과 거의 흡사하여 큰 문제는 없다.
http://www.logikdev.com/2010/02/02/locale-settings-for-your-cron-job/
update 140101) 이 설정은 Amazon Instance를 리부트할 때마다 실행시켜줘야 함.. 왜 그런지 모르겠음. 덤으로 리부트 후에는 broken pipe를 막기 위해 /etc/ssh/sshd_config에 아래를 추가할 것.
KeepAlive yes ClientAliveInterval 60
cd ~/domain.com git init git add . git commit -m "initial import of pre-existing web files" cd ~/hub.domain.com git --bare init cd ~/domain.com git remote add hub ~/hub.domain.com git push hub master cd ~/dev.domain.com git clone ~/hub.domain.com git remote rename origin hub