![]() |
|
|
#23 |
|
Sep 2018
4516 Posts |
|
|
|
|
|
|
#24 |
|
If I May
"Chris Halsall"
Sep 2002
Barbados
9,767 Posts |
Nah... I like to have the file around for analysis in the case of a mis-match or other issues (I only do P-1'ing or DC'ing). And on one of my fastest machines (with frequent logging) it only generates about 10 MB a month; nothing now-a-days....
|
|
|
|
|
|
#25 | |
|
Sep 2018
1058 Posts |
Quote:
Up until now I'd log into one of my linux boxes, kill mprime, and restart it in the SSH session so I could see how it was doing! |
|
|
|
|
|
|
#26 | |
|
60638 Posts |
Quote:
With "systemd" systems like Debian and Ubuntu you should write something like that in a file named /etc/systemd/system/mprime.service : Code:
[Unit] Description=Mprime Service After=network.target [Service] Type=simple Restart=always ExecStart=/path/to/mprime/mprime -d [Install] WantedBy=multi-user.target Code:
systemctl daemon-reload Code:
systemctl enable mprime.service systemctl start mprime.service |
|
|
|
|
#27 |
|
"Teal Dulcet"
Jun 2018
5·7 Posts |
This install script automatically sets up crontab to run MPrime after a specified idle time: https://www.mersenneforum.org/showthread.php?t=23486
It uses this very long command: Code:
crontab -l | { cat; echo "* * * * * if who -s | awk '{ print \$2 }' | (cd /dev && xargs -r stat -c '\%U \%X') | awk '{if ('\"\$(date +\%s)\"'-\$2<$TIME) { print \$1\"\t\"'\"\$(date +\%s)\"'-\$2; ++count }} END{if (count>0) { exit 1 }}' > /dev/null; then pgrep mprime > /dev/null || (cd $DIR && nohup ./mprime &); else pgrep mprime > /dev/null && killall mprime; fi"; } | crontab -
|
|
|
|
![]() |
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| mprime 28.9 - occassional segmentation fault during start | pessoft | Software | 0 | 2016-06-13 20:58 |
| Seeking help on packaging mprime for Debian | alexvong1995 | Linux | 3 | 2015-05-13 12:49 |
| Linux (debian/grub) help | LaurV | Linux | 10 | 2015-04-24 15:39 |
| HowTo: Switch to Linux to finish factoring | Batalov | Linux | 25 | 2009-09-18 06:38 |
| Debian package of mprime | Matt | Linux | 1 | 2007-02-22 22:36 |