Adding example tbl_cron data

This commit is contained in:
ditatompel 2024-05-06 19:56:16 +07:00
parent 8c4b226779
commit 345321c4bc
No known key found for this signature in database
GPG key ID: 31D3D06D77950979
3 changed files with 46 additions and 0 deletions

View file

@ -11,4 +11,8 @@ mariadb-dump --no-data --skip-comments xmr_nodes | \
sed 's/ AUTO_INCREMENT=[0-9]*//g' > \ sed 's/ AUTO_INCREMENT=[0-9]*//g' > \
"./tools/resources/database/structure.sql" "./tools/resources/database/structure.sql"
## Dump `tbl_cron` only
# mariadb-dump --no-create-info --skip-comments xmr_nodes tbl_cron > \
# "./tools/resources/database/tbl_cron.sql"
# vim: set ts=4 sw=4 tw=0 et ft=sh: # vim: set ts=4 sw=4 tw=0 et ft=sh:

View file

@ -0,0 +1,26 @@
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
LOCK TABLES `tbl_cron` WRITE;
/*!40000 ALTER TABLE `tbl_cron` DISABLE KEYS */;
INSERT INTO `tbl_cron` VALUES
(1,'Delete old probe logs','delete_old_probe_logs','Delete old probe log from the database',120,0,0,0.007,0,1);
/*!40000 ALTER TABLE `tbl_cron` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

View file

@ -0,0 +1,16 @@
[Unit]
Description=xmr-node server service
After=network.target mariadb.service
[Install]
WantedBy=multi-user.target
[Service]
Type=simple
User=ditatompel
Restart=always
WorkingDirectory=/srv/http/users/ditatompel/vhosts/xmr.ditatompel.com
ExecStart=/srv/http/users/ditatompel/vhosts/xmr.ditatompel.com/bin/xmr-nodes-static-linux-arm64 serve
SyslogIdentifier=xmr-node-server
# vim: filetype=systemd